Skip to content

Commit 0149705

Browse files
committed
Allow Edit dialog boxes to be closed using the Enter key
1 parent 60e62b7 commit 0149705

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

client/src/components/Item/EditDialogComponent.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
v-model="showDialog"
44
persistent
55
max-width="500"
6-
@keydown.esc="onCancelItemForm">
6+
@keydown.esc="onCancelItemForm"
7+
@keydown.enter="onSaveItemForm">
78
<v-card>
89
<v-card-title class="headline grey lighten-2">
910
<span v-if="formItem && formItem._id">{{ $t('edit-item-dialog.existing-title') }}</span>

client/src/components/List/EditDialogComponent.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
v-model="showDialog"
44
persistent
55
max-width="500"
6-
@keydown.esc="onCancelListForm">
6+
@keydown.esc="onCancelListForm"
7+
@keydown.enter="onSaveListForm">
78
<v-card>
89
<v-card-title class="headline grey lighten-2">
910
<span>{{ $t('edit-list-dialog.existing-title') }}</span>

0 commit comments

Comments
 (0)