Explorar el Código

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 hace 4 años
padre
commit
6081bb5941
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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({