From 86e171442da5c49f6540c3af84faf493cfcf1d62 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sat, 8 Jan 2022 16:19:57 -0800 Subject: [PATCH] fix #2906 --- app/components/Layout.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/components/Layout.tsx b/app/components/Layout.tsx index 6cf913db3..39c8a8ab4 100644 --- a/app/components/Layout.tsx +++ b/app/components/Layout.tsx @@ -55,9 +55,11 @@ class Layout extends React.Component { keyboardShortcutsOpen = false; goToSearch = (ev: KeyboardEvent) => { - ev.preventDefault(); - ev.stopPropagation(); - history.push(searchUrl()); + if (!ev.metaKey && !ev.ctrlKey) { + ev.preventDefault(); + ev.stopPropagation(); + history.push(searchUrl()); + } }; goToNewDocument = () => {