Remove up/down movement support between page name and content

This commit is contained in:
Zef Hemel
2023-02-27 15:55:31 +01:00
parent df38a43a1e
commit 41a311d625
2 changed files with 0 additions and 34 deletions
-16
View File
@@ -93,22 +93,6 @@ export function TopBar({
return onRename();
}
}}
onKeyUp={(view, event) => {
// When moving cursor down, cancel and move back to editor
if (event.key === "ArrowDown") {
const parent =
(event.target as any).parentElement.parentElement;
// Unless we have autocomplete open
if (
parent.getElementsByClassName("cm-tooltip-autocomplete")
.length === 0
) {
onRename();
return true;
}
}
return false;
}}
completer={completer}
onEnter={(newName) => {
onRename(newName);