We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63bb6c6 commit 84617f1Copy full SHA for 84617f1
src/hooks/useKeyPressed/useEscPressed.ts
@@ -5,6 +5,7 @@ type ParamsType = {
5
element: RefObject<HTMLElement>;
6
};
7
8
+// @deprecated - try the new useEscPressedV2 instead
9
export const useEscPressed = ({ execute, element }: ParamsType): void => {
10
useEffect(() => {
11
const keyDownHandler = (event: KeyboardEvent) => {
0 commit comments