Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function isRedo(event) {
return isCommandOrControl(event) &&
(isKey([ 'y', 'Y' ], event) || (isKey(['z', 'Z'], event) && isShift(event)));
}
function isPaste(event) {
return isKey(['v', 'V'], event) && isCommandOrControl(event);
}