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 {
|
} 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'
|
||||||
|
|
Loading…
Reference in a new issue