Fixes inconsisten keyboard shortcuts for opening studio
Changes check to use `key` instead of `code`. related to #34
This commit is contained in:
parent
de6161e1cc
commit
2e4ae0c860
1 changed files with 1 additions and 1 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue