Skip to content

Commit 6f95129

Browse files
authored
Fix Keybindings for edge and IE (codesandbox#430)
1 parent c2c4984 commit 6f95129

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/app/src/app/store/preferences/keybindings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const isMac = !!navigator.platform.match(/(Mac|iPhone|iPod|iPad)/i);
1515
const metaKey = isMac ? 'Meta' : 'Alt';
1616

1717
export function normalizeKey(e: KeyboardEvent) {
18-
if (e.code.startsWith('Key')) {
18+
if (e.key.split('').length === 1) {
1919
const key = String.fromCharCode(e.keyCode).toUpperCase();
2020
if (key === ' ') {
2121
return 'Space';

0 commit comments

Comments
 (0)