Remap voice recording shortcut to fix Paste Match Style
This commit is contained in:
parent
481928fa4f
commit
94a262b799
2 changed files with 9 additions and 3 deletions
|
@ -159,7 +159,7 @@ function getNavigationShortcuts(i18n: LocalizerType): Array<ShortcutType> {
|
|||
{
|
||||
id: 'Keyboard--begin-recording-voice-note',
|
||||
description: i18n('icu:Keyboard--begin-recording-voice-note'),
|
||||
keys: [['commandOrCtrl', 'shift', 'V']],
|
||||
keys: [['commandOrCtrl', 'shift', 'Y']],
|
||||
},
|
||||
{
|
||||
id: 'Keyboard--archive-conversation',
|
||||
|
|
|
@ -203,10 +203,16 @@ export function useStartRecordingShortcut(
|
|||
return false;
|
||||
}
|
||||
|
||||
const { shiftKey } = ev;
|
||||
const key = KeyboardLayout.lookup(ev);
|
||||
|
||||
if (isCmdOrCtrl(ev) && shiftKey && (key === 'v' || key === 'V')) {
|
||||
if (
|
||||
hasExactModifiers(ev, {
|
||||
controlOrMeta: true,
|
||||
shift: true,
|
||||
alt: false,
|
||||
}) &&
|
||||
(key === 'y' || key === 'Y')
|
||||
) {
|
||||
ev.preventDefault();
|
||||
ev.stopPropagation();
|
||||
|
||||
|
|
Loading…
Reference in a new issue