From 564f20d13a004a6e4d8eddd8d426e3146314d36a Mon Sep 17 00:00:00 2001 From: boojack Date: Sun, 11 Dec 2022 14:18:04 +0800 Subject: [PATCH] chore: remove ESC to close edit (#726) --- web/src/components/MemoEditor.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/web/src/components/MemoEditor.tsx b/web/src/components/MemoEditor.tsx index e88b113d..fc9bf022 100644 --- a/web/src/components/MemoEditor.tsx +++ b/web/src/components/MemoEditor.tsx @@ -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);