summaryrefslogtreecommitdiff
path: root/src/client/app/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/app/common')
-rw-r--r--src/client/app/common/views/components/ui/input.vue6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/client/app/common/views/components/ui/input.vue b/src/client/app/common/views/components/ui/input.vue
index e3b7551c29..a960c3a3c4 100644
--- a/src/client/app/common/views/components/ui/input.vue
+++ b/src/client/app/common/views/components/ui/input.vue
@@ -184,6 +184,12 @@ export default Vue.extend({
}
}
});
+
+ this.$on('keydown', (e: KeyboardEvent) => {
+ if (e.code == 'Enter') {
+ this.$emit('enter');
+ }
+ });
},
methods: {
focus() {