(bug 33064) Ignore non-content keypresses

Ignore keypress handling for any keypress with e.which of 0.

Change-Id: Ifa8a562eb882b337bad466183849ba9871605653
This commit is contained in:
Christian Williams 2012-10-15 22:18:39 -07:00 committed by Catrope
parent 7db62daac7
commit 177557808b

View file

@ -654,7 +654,7 @@ ve.ce.Surface.prototype.onPaste = function () {
* @param {jQuery.Event} e
*/
ve.ce.Surface.prototype.onKeyPress = function ( e ) {
if ( ve.ce.Surface.isShortcutKey( e ) || e.which === 13 ) {
if ( ve.ce.Surface.isShortcutKey( e ) || e.which === 13 || e.which === 0 ) {
return;
}