diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-02-02 22:59:11 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-02-02 22:59:11 +0900 |
| commit | 4ea7e711ce68405f8fc191fc893e06bdfbd3228d (patch) | |
| tree | 461fd0ce574209522a3b372c8430adbe22986e7c /src/client/app/common/views/components/ui/input.vue | |
| parent | Fallback en-US (diff) | |
| download | sharkey-4ea7e711ce68405f8fc191fc893e06bdfbd3228d.tar.gz sharkey-4ea7e711ce68405f8fc191fc893e06bdfbd3228d.tar.bz2 sharkey-4ea7e711ce68405f8fc191fc893e06bdfbd3228d.zip | |
[Client] Improve usability
Resolve #4094
Diffstat (limited to 'src/client/app/common/views/components/ui/input.vue')
| -rw-r--r-- | src/client/app/common/views/components/ui/input.vue | 6 |
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() { |