filter debug logging
This commit is contained in:
parent
f9f0b42473
commit
ee49db6775
@ -111,6 +111,7 @@ function useKeyPress(
|
||||
) {
|
||||
useEffect(() => {
|
||||
const listener = (eventRaw: Event) => {
|
||||
if (ctrlKey) {
|
||||
console.log(
|
||||
'eventRaw',
|
||||
eventRaw,
|
||||
@ -121,6 +122,7 @@ function useKeyPress(
|
||||
'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