From 19c72627fc6e9f3c89b649b2f88bf5e066961e7a Mon Sep 17 00:00:00 2001
From: syuilo <syuilotan@yahoo.co.jp>
Date: Tue, 18 Sep 2018 08:19:45 +0900
Subject: [PATCH] Improve keyboard shortcut

---
 .../app/common/views/components/reaction-picker.vue   | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/src/client/app/common/views/components/reaction-picker.vue b/src/client/app/common/views/components/reaction-picker.vue
index 58985658c..c329241d8 100644
--- a/src/client/app/common/views/components/reaction-picker.vue
+++ b/src/client/app/common/views/components/reaction-picker.vue
@@ -62,16 +62,27 @@ export default Vue.extend({
 	computed: {
 		keymap(): any {
 			return {
+				'esc': this.close,
 				'1': () => this.react('like'),
+				'numpad 1': () => this.react('like'),
 				'2': () => this.react('love'),
+				'numpad 2': () => this.react('love'),
 				'3': () => this.react('laugh'),
+				'numpad 3': () => this.react('laugh'),
 				'4': () => this.react('hmm'),
+				'numpad 4': () => this.react('hmm'),
 				'5': () => this.react('surprise'),
+				'numpad 5': () => this.react('surprise'),
 				'6': () => this.react('congrats'),
+				'numpad 6': () => this.react('congrats'),
 				'7': () => this.react('angry'),
+				'numpad 7': () => this.react('angry'),
 				'8': () => this.react('confused'),
+				'numpad 8': () => this.react('confused'),
 				'9': () => this.react('rip'),
+				'numpad 9': () => this.react('rip'),
 				'0': () => this.react('pudding'),
+				'numpad 0': () => this.react('pudding'),
 			};
 		}
 	},