Skip to content

Commit

Permalink
[react] indicate alternatives for deprecated keypress events (#70322)
Browse files Browse the repository at this point in the history
  • Loading branch information
alphashuro authored Aug 20, 2024
1 parent 7bf4eb4 commit 29bf3bc
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions types/react/index.d.ts
Original file line number Diff line number Diff line change
@@ -2428,9 +2428,9 @@ declare namespace React {
// Keyboard Events
onKeyDown?: KeyboardEventHandler<T> | undefined;
onKeyDownCapture?: KeyboardEventHandler<T> | undefined;
/** @deprecated */
/** @deprecated Use `onKeyUp` or `onKeyDown` instead */
onKeyPress?: KeyboardEventHandler<T> | undefined;
/** @deprecated */
/** @deprecated Use `onKeyUpCapture` or `onKeyDownCapture` instead */
onKeyPressCapture?: KeyboardEventHandler<T> | undefined;
onKeyUp?: KeyboardEventHandler<T> | undefined;
onKeyUpCapture?: KeyboardEventHandler<T> | undefined;
4 changes: 2 additions & 2 deletions types/react/ts5.0/index.d.ts
Original file line number Diff line number Diff line change
@@ -2429,9 +2429,9 @@ declare namespace React {
// Keyboard Events
onKeyDown?: KeyboardEventHandler<T> | undefined;
onKeyDownCapture?: KeyboardEventHandler<T> | undefined;
/** @deprecated */
/** @deprecated Use `onKeyUp` or `onKeyDown` instead */
onKeyPress?: KeyboardEventHandler<T> | undefined;
/** @deprecated */
/** @deprecated Use `onKeyUpCapture` or `onKeyDownCapture` instead */
onKeyPressCapture?: KeyboardEventHandler<T> | undefined;
onKeyUp?: KeyboardEventHandler<T> | undefined;
onKeyUpCapture?: KeyboardEventHandler<T> | undefined;

0 comments on commit 29bf3bc

Please sign in to comment.