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 478f49d commit b287274Copy full SHA for b287274
client/common/useKeyDownHandlers.js
@@ -32,14 +32,10 @@ export default function useKeyDownHandlers(keyHandlers) {
32
if (!e.key) return;
33
const isMac = navigator.userAgent.toLowerCase().indexOf('mac') !== -1;
34
const isCtrl = isMac ? e.metaKey : e.ctrlKey;
35
- const shiftNumKeyMap = {
36
- '!': '1',
37
- '@': '2'
38
- };
39
if (e.shiftKey && isCtrl) {
40
handlers.current[
41
`ctrl-shift-${
42
- shiftNumKeyMap[e.key.toLowerCase()] || e.key.toLowerCase()
+ /^\d+$/.test(e.code.at(-1)) ? e.code.at(-1) : e.key.toLowerCase()
43
}`
44
]?.(e);
45
} else if (isCtrl) {
0 commit comments