add debug logging
This commit is contained in:
parent
a079b9b35b
commit
c187a8625f
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user