From c187a8625f9ff2d4e18fc26e8d3cfb2659f60827 Mon Sep 17 00:00:00 2001 From: Michael Peters Date: Sat, 27 Jan 2024 18:29:46 -0800 Subject: [PATCH] add debug logging --- src/components/grid/grid.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/grid/grid.tsx b/src/components/grid/grid.tsx index 34ace90..e663917 100644 --- a/src/components/grid/grid.tsx +++ b/src/components/grid/grid.tsx @@ -111,6 +111,10 @@ function useKeyPress( ) { useEffect(() => { const listener = (eventRaw: Event) => { + console.log('eventRaw', eventRaw); + console.log('callback', callback); + console.log('key', key); + console.log('ctrlKey', ctrlKey); // eslint-disable-next-line @typescript-eslint/no-explicit-any const event = eventRaw as any as KeyboardEvent; if (event.key === key && event.ctrlKey === ctrlKey) {