mirror of
https://github.com/docmost/docmost.git
synced 2026-05-21 01:04:39 +08:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 965c864221 |
@@ -238,14 +238,6 @@ export default function PageEditor({
|
|||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (event.key === "Tab") {
|
|
||||||
const editor = editorRef.current;
|
|
||||||
if (!editor) return false;
|
|
||||||
event.preventDefault();
|
|
||||||
return editor.view.someProp("handleKeyDown", (f) =>
|
|
||||||
f(editor.view, event)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
if (platformModifierKey(event) && event.code === "KeyK") {
|
if (platformModifierKey(event) && event.code === "KeyK") {
|
||||||
searchSpotlight.open();
|
searchSpotlight.open();
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user