From 659211e1ff607bb5e063a72236207f39fc193489 Mon Sep 17 00:00:00 2001 From: Billy Vong Date: Fri, 17 Dec 2021 12:35:47 -0500 Subject: [PATCH] Prevent `ctrl+alt+j` from navigating to Jobs This is a browser hot key to open the Chrome Developer Tools. --- src/Sidebar/ui/SidebarRoot.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Sidebar/ui/SidebarRoot.tsx b/src/Sidebar/ui/SidebarRoot.tsx index 6f87cee3c..e11819923 100644 --- a/src/Sidebar/ui/SidebarRoot.tsx +++ b/src/Sidebar/ui/SidebarRoot.tsx @@ -291,7 +291,8 @@ export function SidebarRoot(props: IProps): React.ReactElement { } else if (event.keyCode === KEY.W && event.altKey) { event.preventDefault(); 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(); clickJob(); } else if (event.keyCode === KEY.R && event.altKey) {