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,6 +111,7 @@ function useKeyPress(
) { ) {
useEffect(() => { useEffect(() => {
const listener = (eventRaw: Event) => { const listener = (eventRaw: Event) => {
if (ctrlKey) {
console.log( console.log(
'eventRaw', 'eventRaw',
eventRaw, eventRaw,
@ -121,6 +122,7 @@ function useKeyPress(
'ctrlKey', 'ctrlKey',
ctrlKey ctrlKey
); );
}
// eslint-disable-next-line @typescript-eslint/no-explicit-any // eslint-disable-next-line @typescript-eslint/no-explicit-any
const event = eventRaw as any as KeyboardEvent; const event = eventRaw as any as KeyboardEvent;
if (event.key === key && event.ctrlKey === ctrlKey) { if (event.key === key && event.ctrlKey === ctrlKey) {