Explorar o 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 %!s(int64=4) %!d(string=hai) anos
pai
achega
6081bb5941
Modificáronse 1 ficheiros con 1 adicións e 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({