fix shortcuts

This commit is contained in:
Olivier Gagnon 2021-12-12 14:02:45 -05:00
parent 11ba8c91be
commit 4460bf1613
3 changed files with 4 additions and 4 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -324,8 +324,8 @@ export function SidebarRoot(props: IProps): React.ReactElement {
// }
}
document.addEventListener("keypress", handleShortcuts);
return () => document.removeEventListener("keypress", handleShortcuts);
document.addEventListener("keydown", handleShortcuts);
return () => document.removeEventListener("keydown", handleShortcuts);
}, []);
const classes = useStyles();