Unicodesnowman has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/182052

Change subject: Ignore events with modifier keys
......................................................................

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
---
M resources/mmv/ui/mmv.ui.metadataPanelScroller.js
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MultimediaViewer 
refs/changes/52/182052/1

diff --git a/resources/mmv/ui/mmv.ui.metadataPanelScroller.js 
b/resources/mmv/ui/mmv.ui.metadataPanelScroller.js
index 7cd9a8e..fa539ce 100644
--- a/resources/mmv/ui/mmv.ui.metadataPanelScroller.js
+++ b/resources/mmv/ui/mmv.ui.metadataPanelScroller.js
@@ -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

-- 
To view, visit https://gerrit.wikimedia.org/r/182052
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I10ca2b89b9eb5addd7c706cf796331b5206d6bef
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MultimediaViewer
Gerrit-Branch: master
Gerrit-Owner: Unicodesnowman <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to