filter debug logging

This commit is contained in:
Michael Peters 2024-01-27 18:32:23 -08:00
parent f9f0b42473
commit ee49db6775

View File

@ -111,16 +111,18 @@ function useKeyPress(
) {
useEffect(() => {
const listener = (eventRaw: Event) => {
console.log(
'eventRaw',
eventRaw,
'callback',
callback,
'key',
key,
'ctrlKey',
ctrlKey
);
if (ctrlKey) {
console.log(
'eventRaw',
eventRaw,
'callback',
callback,
'key',
key,
'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) {