mirror of
https://github.com/usememos/memos.git
synced 2025-01-04 11:33:06 +08:00
chore: remove ESC to close edit (#726)
This commit is contained in:
parent
c3adb1b152
commit
564f20d13a
1 changed files with 1 additions and 3 deletions
|
@ -141,8 +141,6 @@ const MemoEditor = () => {
|
|||
if (event.key === "Escape") {
|
||||
if (state.fullscreen) {
|
||||
handleFullscreenBtnClick();
|
||||
} else if (editorState.editMemoId) {
|
||||
handleCancelEdit();
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
@ -364,7 +362,7 @@ const MemoEditor = () => {
|
|||
};
|
||||
|
||||
const handleEditorBlur = () => {
|
||||
// do nth
|
||||
// do nothing
|
||||
};
|
||||
|
||||
const isEditing = Boolean(editorState.editMemoId && editorState.editMemoId !== UNKNOWN_ID);
|
||||
|
|
Loading…
Reference in a new issue