Skip to content

Commit 2ba2016

Browse files
committed
Switch to read mode after saving
1 parent 5b25561 commit 2ba2016

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/note-card.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -331,9 +331,9 @@ const _NoteCard = React.memo(function NoteCard({
331331
variant="primary"
332332
onClick={() => {
333333
handleSave({ id, content: editorValue })
334-
editorRef.current?.view?.focus()
334+
switchToReading()
335335
}}
336-
shortcut={["⌘", "S"]}
336+
shortcut={["⌘", ""]}
337337
>
338338
{!note ? "Create" : "Save"}
339339
</Button>

0 commit comments

Comments
 (0)