I’m adding an autocomplete feature to CKEditor 3.6 dialog textinput box.
The problem is that selecting a value from the list with ENTER key is not possible because it closes the dialog and all the ENTER key events are stopped from bubbling up the dom.
I can see that in _source/plugins/dialog/plugin.js:
// ESC, ENTER
var preventKeyBubblingKeys = { 27 :1, 13 :1 };
var preventKeyBubbling = function( e )
{
if ( e.data.getKeystroke() in preventKeyBubblingKeys )
e.data.stopPropagation();
};
Is there a way to override this behavior without changing the original code?
Any other ideas are also welcome!
Looks like I will have to put all the dialog content in iframe just to work around this.
It would be nice if the list of keys prevented from bubbling was configurable and not hardcoded.