diff --git a/src/client/app/common/hotkey.ts b/src/client/app/common/hotkey.ts index 10cbeea54..62726887d 100644 --- a/src/client/app/common/hotkey.ts +++ b/src/client/app/common/hotkey.ts @@ -13,8 +13,10 @@ const getKeyMap = keymap => Object.keys(keymap).map(input => { case 'meta': result[keyName] = true; break; - default: + default: { result.keyCode = keyCode(keyName); + if (!Array.isArray(result.keyCode)) result.keyCode = [result.keyCode]; + } } }); @@ -45,7 +47,7 @@ export default { for (const hotkey of el._keymap) { if (el._hotkey_global && reservedKeyCodes.includes(`'${e.keyCode}'`)) break; - const callback = hotkey.keyCode === e.keyCode && + const callback = hotkey.keyCode.includes(e.keyCode) && !!hotkey.ctrl === e.ctrlKey && !!hotkey.alt === e.altKey && !!hotkey.shift === e.shiftKey && diff --git a/src/client/app/common/keycode.ts b/src/client/app/common/keycode.ts index c5ea6cb48..0324a5389 100644 --- a/src/client/app/common/keycode.ts +++ b/src/client/app/common/keycode.ts @@ -67,8 +67,7 @@ export const codes = { 'left command': 91, 'right command': 93, 'numpad *': 106, - // 'numpad +': 107, - 'numpad +': 43, + 'numpad plus': [43, 107], 'numpad add': 43, // as a trick 'numpad -': 109, 'numpad .': 110, diff --git a/src/client/app/common/views/components/reaction-picker.vue b/src/client/app/common/views/components/reaction-picker.vue index c329241d8..4e27fb36e 100644 --- a/src/client/app/common/views/components/reaction-picker.vue +++ b/src/client/app/common/views/components/reaction-picker.vue @@ -3,7 +3,7 @@
{{ title }}
-