mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
(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:
parent
7db62daac7
commit
177557808b
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue