Update packages/react/src/hooks/useKeyPress.ts

Co-authored-by: Dimitri POSTOLOV <dmytropostolov@gmail.com>
This commit is contained in:
Moritz Klack
2025-04-06 20:59:15 +02:00
committed by GitHub
co-authored by Dimitri POSTOLOV
parent c4efe74920
commit 06f4dc73a5
+1 -2
View File
@@ -7,8 +7,7 @@ type KeyOrCode = 'key' | 'code';
export type UseKeyPressOptions = {
/**
* You may want to listen to key presses on a specific element. This field lets you configure
* that!
* Listen to key presses on a specific element.
* @default document
*/
target?: Window | Document | HTMLElement | ShadowRoot | null;