We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fb5f22 commit 05bb954Copy full SHA for 05bb954
src/hooks/use-keyboard-controls.js
@@ -37,8 +37,9 @@ const useKeyboardControls = ({
37
e.preventDefault();
38
}
39
40
- if (!!e.altKey && isMacOS()) {
41
- switch (e.key) {
+ if (e.altKey && isMacOS()) {
+ const key = e.key.toLowerCase();
42
+ switch (key) {
43
case 'ø':
44
toggleMode('overviewMode');
45
break;
@@ -51,8 +52,9 @@ const useKeyboardControls = ({
51
52
default:
53
null;
54
- } else if (!!e.altKey && !!e.shiftKey && isWindows()) {
55
+ } else if (e.altKey && isWindows()) {
56
+ const key = e.key.toUpperCase();
57
58
case 'O':
59
60
0 commit comments