Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
opacity: 1,
background: COLORS[colorNumber],
};
// tabIndex is explicitly set here so we can use the tab key to move between nodes
// - by default we would set it to -1 so it can only be directly clicked (& tapped?)
// or focused programattically
return (
<div style="{style}" tabindex="0">
[Alt+C] Change Color
</div>
);
}
}
export default withHotKeys(ACTION_KEY_MAP)(HOCWrappedNode);