Procházet zdrojové kódy

Do not override cmd/ctrl-f for search (#2461)

F is full screen but we shouldn't override cmd/ctrl-f for search. It's useful for searching in the list of keywords
Christopher Chedeau před 4 roky
rodič
revize
6081bb5941
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/actions/actionMenu.tsx

+ 1 - 1
src/actions/actionMenu.tsx

@@ -66,7 +66,7 @@ export const actionFullScreen = register({
       commitToHistory: false,
     };
   },
-  keyTest: (event) => event.code === CODES.F,
+  keyTest: (event) => event.code === CODES.F && !event[KEYS.CTRL_OR_CMD],
 });
 
 export const actionShortcuts = register({