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
|
@ -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…
Add table
Add a link
Reference in a new issue