This is a continualtion of the fix 7e5937. See comments for this commit. 'Shift+Insert' combination leads to double insertion of clipboard text. For some reason, similar treatment for other secondary Copy and Cut keys is not required Co-authored-by: Serge Lamikhov-Center <to_serge@users.sourceforge.net>
This commit is contained in:
parent
a11dd7cd48
commit
049735e8d9
1 changed files with 2 additions and 1 deletions
|
@ -319,7 +319,8 @@
|
|||
*/
|
||||
function isCopyPasteOrCut(e) {
|
||||
const hasMeta = e.ctrlKey || e.metaKey;
|
||||
return hasMeta && ['c', 'v', 'x'].includes(e.key.toLowerCase());
|
||||
const shiftInsert = e.shiftKey && e.key.toLowerCase() === 'insert';
|
||||
return (hasMeta && ['c', 'v', 'x'].includes(e.key.toLowerCase())) || shiftInsert;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue