mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-16 20:35:09 +00:00
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:
parent
87151071e4
commit
db01284c6e
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue