Shortcuts: Check for both capital and lowercase characters

This commit is contained in:
Scott Nonnenberg 2019-11-14 12:35:59 -08:00
parent d187ab11b2
commit 3c6e23cc5e
3 changed files with 84 additions and 19 deletions

View file

@ -88,7 +88,7 @@ export const EmojiButton = React.memo(
const { ctrlKey, key, metaKey, shiftKey } = event;
const ctrlOrCommand = metaKey || ctrlKey;
if (ctrlOrCommand && shiftKey && key === 'e') {
if (ctrlOrCommand && shiftKey && (key === 'e' || key === 'E')) {
event.stopPropagation();
event.preventDefault();