Skip to content

Commit 2f3b2f1

Browse files
fix(ui): generate tab hotkey
1 parent 9295e3a commit 2f3b2f1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

invokeai/frontend/web/src/common/hooks/useGlobalHotkeys.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,15 @@ export const useGlobalHotkeys = () => {
6161
dependencies: [clearQueue],
6262
});
6363

64+
useRegisteredHotkeys({
65+
id: 'selectGenerateTab',
66+
category: 'app',
67+
callback: () => {
68+
dispatch(setActiveTab('generate'));
69+
},
70+
dependencies: [dispatch],
71+
});
72+
6473
useRegisteredHotkeys({
6574
id: 'selectCanvasTab',
6675
category: 'app',

0 commit comments

Comments
 (0)