mirror of
https://github.com/docmost/docmost.git
synced 2026-05-20 16:44:05 +08:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 55537cd090 | |||
| cc691d1138 | |||
| 1997610cb8 | |||
| bf9ea63247 |
@@ -238,6 +238,14 @@ 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