Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public keys() {
return {
'Mod-y': () => false,
'Mod-z': this.wrapMethod(undo),
'Shift-Mod-z': this.wrapMethod(redo),
...(!environment.isMac ? { ['Mod-y']: this.wrapMethod(redo) } : {}),
};
}