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",
"title": "Upscale"
},
"backToEditor": {
"desc": "Closes the Image Viewer and shows the Editor View (Text to Image tab only)",
"title": "Back to Editor"
},
"openImageViewer": {
"desc": "Opens the Image Viewer (Text to Image tab only)",
"title": "Open Image Viewer"
"toggleViewer": {
"desc": "Switches between the Image Viewer and workspace for the current tab.",
"title": "Toggle Image Viewer"
}
},
"metadata": {

View File

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