From 2e4ae0c860c6e8070891897346036696253661e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rn=20Myrland?= Date: Sat, 9 Oct 2021 11:54:10 +0200 Subject: [PATCH] Fixes inconsisten keyboard shortcuts for opening studio Changes check to use `key` instead of `code`. related to #34 --- theatre/studio/src/UIRoot/useKeyboardShortcuts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/theatre/studio/src/UIRoot/useKeyboardShortcuts.ts b/theatre/studio/src/UIRoot/useKeyboardShortcuts.ts index 19e1b10..dd76484 100644 --- a/theatre/studio/src/UIRoot/useKeyboardShortcuts.ts +++ b/theatre/studio/src/UIRoot/useKeyboardShortcuts.ts @@ -44,7 +44,7 @@ export default function useKeyboardShortcuts() { } else { return } - } else if (e.code === 'Backslash' && e.altKey) { + } else if (e.key === `'` && e.altKey) { studio.transaction(({stateEditors, drafts}) => { stateEditors.studio.ahistoric.setVisibilityState( drafts.ahistoric.visibilityState === 'everythingIsHidden'