mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-09-01 19:49:54 +02:00
editor: focus editor on press enter on mobile
This commit is contained in:
@@ -115,6 +115,13 @@ function Title({
|
||||
onInput={() => {
|
||||
resizeTextarea();
|
||||
}}
|
||||
onKeyDown={(e) => {
|
||||
if (e.key === "Enter") {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
editor?.commands.focus();
|
||||
}
|
||||
}}
|
||||
onPaste={() => {
|
||||
resizeTextarea();
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user