Enable keyboard navigation in EmojiPicker.
This commit is contained in:

committed by
Scott Nonnenberg

parent
67660e1e39
commit
feb4da874b
@@ -1714,7 +1714,6 @@
|
||||
} else {
|
||||
textarea.value += colons;
|
||||
}
|
||||
this.focusMessageField();
|
||||
},
|
||||
|
||||
async setQuoteMessage(messageId) {
|
||||
|
@@ -130,7 +130,17 @@ export const EmojiPicker = React.memo(
|
||||
setSearchText('');
|
||||
setSearchMode(false);
|
||||
setScrollToRow(0);
|
||||
} else if (!searchMode) {
|
||||
} else if (
|
||||
!searchMode &&
|
||||
![
|
||||
'ArrowUp',
|
||||
'ArrowDown',
|
||||
'ArrowLeft',
|
||||
'ArrowRight',
|
||||
'Tab',
|
||||
' ', // Space
|
||||
].includes(e.key)
|
||||
) {
|
||||
onClose();
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user