Merge pull request #1985 from billyvg/fix/prevent-ctrl-alt-j-navigation

Prevent `ctrl+alt+j` from navigating to Jobs
This commit is contained in:
hydroflame 2021-12-17 12:55:08 -05:00 committed by GitHub
commit 5b79712817
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -292,7 +292,8 @@ export function SidebarRoot(props: IProps): React.ReactElement {
} else if (event.keyCode === KEY.W && event.altKey) { } else if (event.keyCode === KEY.W && event.altKey) {
event.preventDefault(); event.preventDefault();
clickCity(); clickCity();
} else if (event.keyCode === KEY.J && event.altKey) { } else if (event.keyCode === KEY.J && event.altKey && !event.ctrlKey && !event.metaKey) {
// ctrl/cmd + alt + j is shortcut to open Chrome dev tools
event.preventDefault(); event.preventDefault();
clickJob(); clickJob();
} else if (event.keyCode === KEY.R && event.altKey) { } else if (event.keyCode === KEY.R && event.altKey) {