filter debug logging
This commit is contained in:
parent
f9f0b42473
commit
ee49db6775
@ -111,16 +111,18 @@ function useKeyPress(
|
|||||||
) {
|
) {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const listener = (eventRaw: Event) => {
|
const listener = (eventRaw: Event) => {
|
||||||
console.log(
|
if (ctrlKey) {
|
||||||
'eventRaw',
|
console.log(
|
||||||
eventRaw,
|
'eventRaw',
|
||||||
'callback',
|
eventRaw,
|
||||||
callback,
|
'callback',
|
||||||
'key',
|
callback,
|
||||||
key,
|
'key',
|
||||||
'ctrlKey',
|
key,
|
||||||
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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user