mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-22 15:16:40 +11:00
Remove another console log
This commit is contained in:
parent
bb47bc21a5
commit
472d641cfc
1 changed files with 0 additions and 1 deletions
|
@ -3,7 +3,6 @@ import { useEffect } from "react";
|
||||||
export const useOnKeyUp = (targetKey: string, callback: () => void) => {
|
export const useOnKeyUp = (targetKey: string, callback: () => void) => {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const downHandler = (evnt: KeyboardEvent) => {
|
const downHandler = (evnt: KeyboardEvent) => {
|
||||||
console.log(evnt.key);
|
|
||||||
if (evnt.key === targetKey) {
|
if (evnt.key === targetKey) {
|
||||||
callback();
|
callback();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue