This commit is contained in:
@@ -42,6 +42,10 @@ export const handleKeydown = (bookKey: string, event: KeyboardEvent) => {
|
||||
if (['Backspace'].includes(event.key)) {
|
||||
event.preventDefault();
|
||||
}
|
||||
if (event.ctrlKey && event.key.toLowerCase() === 'f') {
|
||||
event.preventDefault();
|
||||
}
|
||||
|
||||
window.postMessage(
|
||||
{
|
||||
type: 'iframe-keydown',
|
||||
|
||||
@@ -99,6 +99,10 @@ const useShortcuts = (actions: KeyActionHandlers, dependencies: React.Dependency
|
||||
return;
|
||||
}
|
||||
|
||||
if (ctrlKey && key.toLowerCase() === 'f') {
|
||||
event.preventDefault();
|
||||
}
|
||||
|
||||
const handled = processKeyEvent(key.toLowerCase(), ctrlKey, altKey, metaKey, shiftKey, event);
|
||||
// console.log('Key event handled:', key, handled);
|
||||
if (handled) event.preventDefault();
|
||||
|
||||
Reference in New Issue
Block a user