From 4ea7e711ce68405f8fc191fc893e06bdfbd3228d Mon Sep 17 00:00:00 2001
From: syuilo <syuilotan@yahoo.co.jp>
Date: Sat, 2 Feb 2019 22:59:11 +0900
Subject: [Client] Improve usability

Resolve #4094
---
 src/client/app/common/views/components/ui/input.vue | 6 ++++++
 1 file changed, 6 insertions(+)

(limited to 'src/client/app/common/views/components/ui/input.vue')

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() {
-- 
cgit v1.2.3-freya

