(bug 43382) Alt+shortcut key does not work in Chrome/Linux
authorSanthosh Thottingal <santhosh.thottingal@gmail.com>
Mon, 24 Dec 2012 14:36:01 +0000 (20:06 +0530)
committerSanthosh Thottingal <santhosh.thottingal@gmail.com>
Mon, 24 Dec 2012 14:37:26 +0000 (20:07 +0530)
For chrome in linux, the shortcut keys given are ALT+[KEY].
This works, but fails for keys like E, F, D etc.
ALT+E or ALT+F opens the settings menu, ALT+D highlights URL.
To make it work always with all keys , it should be presented as
ALT+SHIF+[KEY] as done for Windows.

Change-Id: I87a9d498ac99d381c31c94b03d6cc72fa265e839

resources/mediawiki/mediawiki.util.js

index 05ffcc0..9b2faa8 100644 (file)
                                        profile.platform === 'mac'
                                                // Chrome on Mac
                                                ? 'ctrl-option-'
-                                               : profile.platform === 'win'
-                                                       // Chrome on Windows
-                                                       // (both alt- and alt-shift work, but alt-f triggers Chrome wrench menu
-                                                       // which alt-shift-f does not)
-                                                       ? 'alt-shift-'
-                                                       // Chrome on other (Ubuntu?)
-                                                       : 'alt-'
+                                               // Chrome on Windows or Linux
+                                               // (both alt- and alt-shift work, but alt with E, D, F etc does not
+                                               // work since they are browser shortcuts)
+                                               : 'alt-shift-'
                                );
 
                        // Non-Windows Safari with webkit_version > 526