Unverified Commit 564f20d1 authored by boojack's avatar boojack Committed by GitHub

chore: remove ESC to close edit (#726)

parent c3adb1b1
...@@ -141,8 +141,6 @@ const MemoEditor = () => { ...@@ -141,8 +141,6 @@ const MemoEditor = () => {
if (event.key === "Escape") { if (event.key === "Escape") {
if (state.fullscreen) { if (state.fullscreen) {
handleFullscreenBtnClick(); handleFullscreenBtnClick();
} else if (editorState.editMemoId) {
handleCancelEdit();
} }
return; return;
} }
...@@ -364,7 +362,7 @@ const MemoEditor = () => { ...@@ -364,7 +362,7 @@ const MemoEditor = () => {
}; };
const handleEditorBlur = () => { const handleEditorBlur = () => {
// do nth // do nothing
}; };
const isEditing = Boolean(editorState.editMemoId && editorState.editMemoId !== UNKNOWN_ID); const isEditing = Boolean(editorState.editMemoId && editorState.editMemoId !== UNKNOWN_ID);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment