Skip to content

Commit

Permalink
Merge branch 'feat/shortcut' into deploy/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
YIXIAO0 committed Aug 16, 2024
2 parents abb7c2d + 5dd296f commit 7bf1472
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/app/components/workflow/hooks/use-shortcuts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const useShortcuts = (): void => {
const shouldHandleShortcut = useCallback((e: KeyboardEvent) => {
const { showFeaturesPanel } = workflowStore.getState()
return !showFeaturesPanel && !isEventTargetInputArea(e.target as HTMLElement)
}, [workflowStore, isEventTargetInputArea])
}, [workflowStore])

useKeyPress(['delete', 'backspace'], (e) => {
if (shouldHandleShortcut(e)) {
Expand Down

0 comments on commit 7bf1472

Please sign in to comment.