From dd5e19a37be6f0dab3fd629f3413a07903995ad7 Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Fri, 1 Jul 2016 22:09:20 +0100 Subject: [PATCH] mediawiki.action.edit.stash: Document ignored key codes Follows-up eca800c7f02. Change-Id: Ic0d9620eb3a5e371cc9825248ebb40abb0dea965 --- .../src/mediawiki.action/mediawiki.action.edit.stash.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/src/mediawiki.action/mediawiki.action.edit.stash.js b/resources/src/mediawiki.action/mediawiki.action.edit.stash.js index da27d20cce..07c7d762bc 100644 --- a/resources/src/mediawiki.action/mediawiki.action.edit.stash.js +++ b/resources/src/mediawiki.action/mediawiki.action.edit.stash.js @@ -64,8 +64,10 @@ function onTextKeyUp( e ) { // Ignore keystrokes that don't modify text, like cursor movements. // See and - // . We don't have to be - // exhaustive, because the cost of misfiring is low. + // . We don't have to be exhaustive, + // because the cost of misfiring is low. + // * Key code 33-40: Page Up/Down, End, Home, arrow keys. + // * Key code 16-18: Shift, Ctrl, Alt. if ( ( e.which >= 33 && e.which <= 40 ) || ( e.which >= 16 && e.which <= 18 ) ) { return; } -- 2.20.1