Update packages/react/src/hooks/useKeyPress.ts
Co-authored-by: Dimitri POSTOLOV <dmytropostolov@gmail.com>
This commit is contained in:
co-authored by
Dimitri POSTOLOV
parent
c4efe74920
commit
06f4dc73a5
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user