Skip to content

Commit 5253b05

Browse files
committed
feat: adding shortcut for execution tab
1 parent 43c7c0a commit 5253b05

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • src/app/(flow)/namespace/[namespaceId]/project/[projectId]/flow/[flowId]

src/app/(flow)/namespace/[namespaceId]/project/[projectId]/flow/[flowId]/page.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ export default function Page() {
3737
keyboardEvent.preventDefault()
3838
}, [])
3939

40+
useHotkeys('shift+2', (keyboardEvent) => {
41+
setTab(prevState => prevState === "execution" ? undefined : "execution")
42+
keyboardEvent.stopPropagation()
43+
keyboardEvent.preventDefault()
44+
}, [])
45+
4046
React.useEffect(() => {
4147

4248
const localSelectedNode = reactFlow.getNodes().filter((node) => node.selected)[0] as Node | undefined

0 commit comments

Comments
 (0)