﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
6158	Scrolling problem with simulated spacebar keypress on Gecko	cwgordon7		"I'm not entirely sure this is a problem with CKEditor, and I apologize for wasting your time if it isn't.

We wrote a custom plugin for CKEditor that I think might ultimately be the cause of our problem. The problem is that on Firefox, these line of code in plugins/wysiwygarea/plugin.inc:


{{{
// Simulating keyboard character input by dispatching a keydown of white-space text.
var keyEventSimulate = domDocument.$.createEvent( ""KeyEvents"" );
keyEventSimulate.initKeyEvent( 'keypress', true, true, domWindow.$, false,
false, false, false, 0, 32 );
domDocument.$.dispatchEvent( keyEventSimulate );
}}}

trigger a keypress event firing the spacebar. When the spacebar is pressed, the default browser behavior is to scroll down the page. The page thus scrolls down as soon as ckeditor reaches this point in the code.

The symptoms of this problem appear quite similar to those described in http://dev.ckeditor.com/ticket/4397.

Possible other useful information:
 - We have multiple ckeditor wysiwygs on the same page.

If you think you know what's going on, or you can explain why that spacebar keypress doesn't normally trigger a page scroll down, or you have questions that you need answered to help us debug, that would be great, and we'd be glad to provide you with any information you need.

Thanks!"	Bug	closed	Normal		General		invalid		
