Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
beginEdit = (actionName, index) => {
// Begin recording that we are editing a key.
var cancelKeyRecording = recordKeyCombination(
(sequence) => this.changeKey(actionName, index, sequence)
);
// Set that we are editing a key.
this.setState({
editingAction: {actionName: actionName, index: index || 0},
cancelKeyRecording: cancelKeyRecording,
});
}