Shortcuts: Check for both capital and lowercase characters
This commit is contained in:
parent
d187ab11b2
commit
3c6e23cc5e
3 changed files with 84 additions and 19 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue