fix search shortcut

This commit is contained in:
Philipinho
2026-01-24 18:43:45 +00:00
parent b82fdd5f50
commit c72ee1ee8e
2 changed files with 1 additions and 3 deletions
@@ -78,7 +78,6 @@ import i18n from "@/i18n.ts";
import { MarkdownClipboard } from "@/features/editor/extensions/markdown-clipboard.ts";
import EmojiCommand from "./emoji-command";
import { countWords } from "alfaaz";
import { PluginKey } from "@tiptap/pm/state";
const lowlight = createLowlight(common);
lowlight.register("mermaid", plaintext);
@@ -244,7 +243,7 @@ export const mainExtensions = [
"Mod-f": () => {
const event = new CustomEvent("openFindDialogFromEditor", {});
document.dispatchEvent(event);
return false;
return true;
},
Escape: () => {
const event = new CustomEvent("closeFindDialogFromEditor", {});
@@ -53,7 +53,6 @@ export default function PageHeaderMenu({ readOnly }: PageHeaderMenuProps) {
const event = new CustomEvent("openFindDialogFromEditor", {});
document.dispatchEvent(event);
},
{ preventDefault: false },
],
[
"Escape",