useKeyStrokeOnce

Tags:

A React Hook that helps to handle key strokes once.

Demo

Try to press Enter to increase the counter.

Source
Key stroke times:
0
Enter

Usage

See API for more details.

Source

Click links below to view source on GitHub.

API

Same as useKeyStroke, but the handler will only be called once.

ON THIS PAGE