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
+2 -2
View File
@@ -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();