From 177557808bd8d6c9e510f3b03aa432b2a53a6cd9 Mon Sep 17 00:00:00 2001 From: Christian Williams Date: Mon, 15 Oct 2012 22:18:39 -0700 Subject: [PATCH] (bug 33064) Ignore non-content keypresses Ignore keypress handling for any keypress with e.which of 0. Change-Id: Ifa8a562eb882b337bad466183849ba9871605653 --- modules/ve/ce/ve.ce.Surface.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ve/ce/ve.ce.Surface.js b/modules/ve/ce/ve.ce.Surface.js index cd7c331f79..fc1d0f8151 100644 --- a/modules/ve/ce/ve.ce.Surface.js +++ b/modules/ve/ce/ve.ce.Surface.js @@ -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; }