mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-02 14:21:05 +01:00
Add forward messages shortcut, remap open stickers
This commit is contained in:
@@ -30,6 +30,7 @@ type KeyType =
|
||||
| 'D'
|
||||
| 'E'
|
||||
| 'F'
|
||||
| 'G'
|
||||
| 'J'
|
||||
| 'L'
|
||||
| 'M'
|
||||
@@ -130,7 +131,7 @@ function getNavigationShortcuts(i18n: LocalizerType): Array<ShortcutType> {
|
||||
{
|
||||
id: 'Keyboard--open-sticker-chooser',
|
||||
description: i18n('icu:Keyboard--open-sticker-chooser'),
|
||||
keys: [['commandOrCtrl', 'shift', 'S']],
|
||||
keys: [['commandOrCtrl', 'shift', 'G']],
|
||||
},
|
||||
{
|
||||
id: 'Keyboard--begin-recording-voice-note',
|
||||
@@ -197,6 +198,11 @@ function getMessageShortcuts(i18n: LocalizerType): Array<ShortcutType> {
|
||||
description: i18n('icu:Keyboard--delete-messages'),
|
||||
keys: [['commandOrCtrl', 'shift', 'D']],
|
||||
},
|
||||
{
|
||||
id: 'Keyboard--forward-messages',
|
||||
description: i18n('icu:Keyboard--forward-messages'),
|
||||
keys: [['commandOrCtrl', 'shift', 'S']],
|
||||
},
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
@@ -201,7 +201,7 @@ export const StickerButton = React.memo(function StickerButtonInner({
|
||||
return;
|
||||
}
|
||||
|
||||
if (commandOrCtrl && shiftKey && (key === 's' || key === 'S')) {
|
||||
if (commandOrCtrl && shiftKey && (key === 'g' || key === 'G')) {
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user