Skip to content

Commit 84617f1

Browse files
author
Kubit
committed
Add deprecated comment to useEscPressed
1 parent 63bb6c6 commit 84617f1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/hooks/useKeyPressed/useEscPressed.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ type ParamsType = {
55
element: RefObject<HTMLElement>;
66
};
77

8+
// @deprecated - try the new useEscPressedV2 instead
89
export const useEscPressed = ({ execute, element }: ParamsType): void => {
910
useEffect(() => {
1011
const keyDownHandler = (event: KeyboardEvent) => {

0 commit comments

Comments
 (0)