Skip to content

Commit 2684789

Browse files
psychedelicioushipsterusername
authored andcommitted
fix(ui): update hotkeys for viewer
1 parent e4a640f commit 2684789

File tree

2 files changed

+6
-15
lines changed

2 files changed

+6
-15
lines changed

invokeai/frontend/web/public/locales/en.json

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -589,13 +589,9 @@
589589
"desc": "Upscale the current image",
590590
"title": "Upscale"
591591
},
592-
"backToEditor": {
593-
"desc": "Closes the Image Viewer and shows the Editor View (Text to Image tab only)",
594-
"title": "Back to Editor"
595-
},
596-
"openImageViewer": {
597-
"desc": "Opens the Image Viewer (Text to Image tab only)",
598-
"title": "Open Image Viewer"
592+
"toggleViewer": {
593+
"desc": "Switches between the Image Viewer and workspace for the current tab.",
594+
"title": "Toggle Image Viewer"
599595
}
600596
},
601597
"metadata": {

invokeai/frontend/web/src/features/system/components/HotkeysModal/useHotkeyData.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -141,14 +141,9 @@ export const useHotkeyData = (): HotkeyGroup[] => {
141141
hotkeys: [['Arrow Right']],
142142
},
143143
{
144-
title: t('hotkeys.openImageViewer.title'),
145-
desc: t('hotkeys.openImageViewer.desc'),
146-
hotkeys: [['I']],
147-
},
148-
{
149-
title: t('hotkeys.backToEditor.title'),
150-
desc: t('hotkeys.backToEditor.desc'),
151-
hotkeys: [['Esc']],
144+
title: t('hotkeys.toggleViewer.title'),
145+
desc: t('hotkeys.toggleViewer.desc'),
146+
hotkeys: [['Z']],
152147
},
153148
],
154149
}),

0 commit comments

Comments
 (0)