Merge "(bug 47711) Fix FF specific bug"

This commit is contained in:
jenkins-bot 2013-04-26 21:11:34 +00:00 committed by Gerrit Code Review
commit a6d916637e

View file

@ -410,7 +410,9 @@ ve.ce.Surface.prototype.onDocumentKeyPress = function ( e ) {
} }
} }
if ( ve.ce.isShortcutKey( e ) || // FF fire keypress for arrow keys but we handle them in keydown so let's ignore
if ( ve.ce.isArrowKey( e.keyCode ) ||
ve.ce.isShortcutKey( e ) ||
e.which === ve.Keys.DOM_VK_RETURN || e.which === ve.Keys.DOM_VK_RETURN ||
e.which === ve.Keys.DOM_VK_BACK_SPACE || e.which === ve.Keys.DOM_VK_BACK_SPACE ||
e.which === ve.Keys.DOM_VK_UNDEFINED ) { e.which === ve.Keys.DOM_VK_UNDEFINED ) {