Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(props) {
super(props);
const commands = getCommands(this);
// Don't bind clipboard shortcuts (use native ones directly)
["cut", "copy", "paste"].forEach(cmdId => delete commands[cmdId]);
this.hotkeyDefs = getCommandHotkeys(commands);
this.handlers = getCommandHotkeyHandlers(commands);
this.Handler = withHotkeys(this.hotkeyDefs, this.handlers)();
}