chore: remove ESC to close edit (#726)

pull/728/head
boojack 3 years ago committed by GitHub
parent c3adb1b152
commit 564f20d13a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save