diff options
Diffstat (limited to 'app/assets/javascripts/notes/components/note_form.vue')
-rw-r--r-- | app/assets/javascripts/notes/components/note_form.vue | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/assets/javascripts/notes/components/note_form.vue b/app/assets/javascripts/notes/components/note_form.vue index 2cf6e9bb180..fe7967f1ed0 100644 --- a/app/assets/javascripts/notes/components/note_form.vue +++ b/app/assets/javascripts/notes/components/note_form.vue @@ -94,6 +94,11 @@ export default { required: false, default: false, }, + autofocus: { + type: Boolean, + required: false, + default: true, + }, }, data() { return { @@ -359,7 +364,7 @@ export default { :autocomplete-data-sources="autocompleteDataSources" :disabled="isSubmitting" supports-quick-actions - autofocus + :autofocus="autofocus" @keydown.meta.enter="handleKeySubmit()" @keydown.ctrl.enter="handleKeySubmit()" @keydown.exact.up="editMyLastNote()" |