Fixes inconsisten keyboard shortcuts for opening studio

Changes check to use `key` instead of `code`.

related to #34
This commit is contained in:
Jørn Myrland 2021-10-09 11:54:10 +02:00 committed by Aria
parent de6161e1cc
commit 2e4ae0c860

View file

@ -44,7 +44,7 @@ export default function useKeyboardShortcuts() {
} else { } else {
return return
} }
} else if (e.code === 'Backslash' && e.altKey) { } else if (e.key === `'` && e.altKey) {
studio.transaction(({stateEditors, drafts}) => { studio.transaction(({stateEditors, drafts}) => {
stateEditors.studio.ahistoric.setVisibilityState( stateEditors.studio.ahistoric.setVisibilityState(
drafts.ahistoric.visibilityState === 'everythingIsHidden' drafts.ahistoric.visibilityState === 'everythingIsHidden'