diff options
author | Jonas <jonas@freesources.org> | 2022-09-05 13:59:45 +0300 |
---|---|---|
committer | Jonas <jonas@freesources.org> | 2022-09-13 11:53:55 +0300 |
commit | 1bcf04181832c7b514ba9d4af07165bb5f18964c (patch) | |
tree | 6c84d9381ab9d56221b5d48784141aa7d17b6056 /src/components/EmojiList.vue | |
parent | 6b7ea640e5b2d56ffe2dc91761e7f932a4d6fc9b (diff) |
Ignore keyboard combinations with modifiers in emoji selector list
Signed-off-by: Jonas <jonas@freesources.org>
Diffstat (limited to 'src/components/EmojiList.vue')
-rw-r--r-- | src/components/EmojiList.vue | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/components/EmojiList.vue b/src/components/EmojiList.vue index d1652cf5a..edefb1293 100644 --- a/src/components/EmojiList.vue +++ b/src/components/EmojiList.vue @@ -84,6 +84,11 @@ export default { methods: { t, onKeyDown({ event }) { + // Ignore any key modifier combinations + if (event.ctrlKey || event.shiftKey || event.altKey || event.metaKey) { + return false + } + if (event.key === 'ArrowUp') { this.selectedIndex = ((this.selectedIndex + this.items.length) - 1) % this.items.length if (!this.itemInsideScrollView) { |