fix(ui): update hotkeys for viewer

This commit is contained in:
psychedelicious 2024-05-06 15:35:12 +10:00 committed by Kent Keirsey
parent e4a640f0a7
commit 26847895b9
2 changed files with 6 additions and 15 deletions

View File

@ -589,13 +589,9 @@
"desc": "Upscale the current image", "desc": "Upscale the current image",
"title": "Upscale" "title": "Upscale"
}, },
"backToEditor": { "toggleViewer": {
"desc": "Closes the Image Viewer and shows the Editor View (Text to Image tab only)", "desc": "Switches between the Image Viewer and workspace for the current tab.",
"title": "Back to Editor" "title": "Toggle Image Viewer"
},
"openImageViewer": {
"desc": "Opens the Image Viewer (Text to Image tab only)",
"title": "Open Image Viewer"
} }
}, },
"metadata": { "metadata": {

View File

@ -141,14 +141,9 @@ export const useHotkeyData = (): HotkeyGroup[] => {
hotkeys: [['Arrow Right']], hotkeys: [['Arrow Right']],
}, },
{ {
title: t('hotkeys.openImageViewer.title'), title: t('hotkeys.toggleViewer.title'),
desc: t('hotkeys.openImageViewer.desc'), desc: t('hotkeys.toggleViewer.desc'),
hotkeys: [['I']], hotkeys: [['Z']],
},
{
title: t('hotkeys.backToEditor.title'),
desc: t('hotkeys.backToEditor.desc'),
hotkeys: [['Esc']],
}, },
], ],
}), }),