Cmd Shift combination not recognized on mac/firefox #6453
Labels
pkg:shortcuts
status:resolved-locked
Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion.
Milestone
From #6447 (comment):
I noticed that the redo event was never getting triggered on mac. After testing a lot of things, I realized that on mac/firefox, pressing command, shift, and a key was triggering a keydown event with shiftKey set to false.
To test, I use the
\
key because I'm pretty sure it is not assigned to anything, so there wouldn't be conflicts. I did try it with several other keys with the same results. You can go to a blank page, open the console, and dodocument.addEventListener('keydown', console.log);
in the console and then press, sayCommand Shift \
. You can notice that the console says it has a Meta Shift keyboard event, but theshiftKey
attribute of the event is false. You can also see this by going to http://nonan.jp/keyevent/input.html and pressing theCommand Shift \
combination and note that shiftKey is set correctly for the meta keydown event, but it is false for\
keydown event. In fact, on that website, I'm seeing correctshiftKey
reporting for a keydown event for shift and\
and any combination of control, alt, and command (e.g.,Command Alt Shift \
,Command Ctrl Shift \
,Alt Shift \
, etc.) exceptCommand Shift \
.I also tested firefox on windows, and it correctly reported the shiftKey status (though there
Command
is mapped to theOS
modifier on the above test page, and presumably in the event).The end result is that the
Command Shift Z
shortcut doesn't work for me on firefox on mac, but does on Chrome on mac. But this looks like a firefox bug, not a JLab bug.So:
Accel Shift <key>
to make sure they work, or change them so they do work on mac/firefox, or decide it's not important enough to accommodate a firefox/mac bug.The text was updated successfully, but these errors were encountered: