Ignore events with modifier keys

I've combed through the entire codebase for keydown, keyup, keypress
and .which and I've only found one case where modifier keys are not
ignored for keyboard shortcuts.

Bug: T68329
Change-Id: I10ca2b89b9eb5addd7c706cf796331b5206d6bef
This commit is contained in:
gladoscc 2014-12-29 17:51:23 +11:00
parent 87151071e4
commit db01284c6e

View file

@ -194,6 +194,9 @@
* Handles keydown events for this element.
*/
MPSP.keydown = function ( e ) {
if ( e.altKey || e.shiftKey || e.ctrlKey || e.metaKey ) {
return;
}
switch ( e.which ) {
case 40: // Down arrow
// fall through