fix(shortcut): focusInput
This commit is contained in:
@@ -55,7 +55,7 @@ import {
|
||||
useTimerStore,
|
||||
} from "./useTimerStore"
|
||||
import { useTopToolsStore } from "./useTopToolsStore"
|
||||
import { findGroupKey } from "./util"
|
||||
import { findGroupKey, isEditableKeyboardTarget } from "./util"
|
||||
import { safeClone } from "./utils/clone"
|
||||
import { labelTypeMap } from "./utils/constants"
|
||||
import { toggleObjectHideByShortcut } from "./utils/objectVisibility"
|
||||
@@ -2164,7 +2164,7 @@ const LabelPage = ({
|
||||
useEffect(() => {
|
||||
const down = (e: KeyboardEvent) => {
|
||||
// console.log(e, e.key);
|
||||
if (focusInput) return
|
||||
if (focusInput || isEditableKeyboardTarget(e.target)) return
|
||||
|
||||
console.log(e.key)
|
||||
const mode = usePaperStore.getState().mode
|
||||
|
||||
Reference in New Issue
Block a user