mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-26 21:28:40 +00:00
Remap voice recording shortcut to fix Paste Match Style
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user