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

@ -154,7 +154,7 @@ export const StickerButton = React.memo(
const { ctrlKey, key, metaKey, shiftKey } = event;
const ctrlOrCommand = metaKey || ctrlKey;
if (ctrlOrCommand && shiftKey && key === 's') {
if (ctrlOrCommand && shiftKey && (key === 's' || key === 'S')) {
event.stopPropagation();
event.preventDefault();