Pressing enter in a note title moves cursor to end of note.

This commit is contained in:
Max G 2020-03-14 02:09:43 +00:00
parent 4533f6065d
commit ca0b649ff6

View File

@ -45,7 +45,7 @@
ref="titleTextarea"
v-on:keyup="titleResize"
v-on:keydown="titleResize"
@keydown.enter.exact.prevent="editor.focus()"
@keydown.enter.exact.prevent="editor.focus(); editor.moveCursorToEnd()"
rows="1"
:style="{ 'background-color':styleObject['noteBackground'], 'color':styleObject['noteText']}"
v-on:blur="save" type="text" v-model="noteTitle" placeholder="Title" class="stealth-input">