Skip to content

Commit

Permalink
Ignore keyboard combinations with modifiers in emoji selector list
Browse files Browse the repository at this point in the history
Signed-off-by: Jonas <jonas@freesources.org>
  • Loading branch information
mejo- committed Sep 8, 2022
1 parent 5353e5d commit 43062d3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/EmojiList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 43062d3

Please sign in to comment.