Wraps the given function in an event handler function that only calls the given function if the Enter/Return key is pressed.
Useful with the onKeyDown HTML prop for onClick-like behavior.
onKeyDown
onClick
The function to call when the Enter/Return key is pressed.
Wraps the given function in an event handler function that only calls the given function if the Enter/Return key is pressed.
Useful with the
onKeyDownHTML prop foronClick-like behavior.