mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-24 04:00:59 +01: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