File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 5858 @click =" () => commandStore.execute('Comfy.Canvas.ToggleLinkVisibility')"
5959 />
6060 <Button
61- v-tooltip.left =" t('graphCanvasMenu.toggleMinimap') + ' (Alt + m)' "
61+ v-tooltip.left =" minimapTooltip "
6262 severity =" secondary"
6363 :icon =" 'pi pi-map'"
6464 :aria-label =" $t('graphCanvasMenu.toggleMinimap')"
@@ -79,15 +79,24 @@ import { useCanvasInteractions } from '@/composables/graph/useCanvasInteractions
7979import { LiteGraph } from ' @/lib/litegraph/src/litegraph'
8080import { useCommandStore } from ' @/stores/commandStore'
8181import { useCanvasStore } from ' @/stores/graphStore'
82+ import { useKeybindingStore } from ' @/stores/keybindingStore'
8283import { useSettingStore } from ' @/stores/settingStore'
8384
8485const { t } = useI18n ()
8586const commandStore = useCommandStore ()
8687const canvasStore = useCanvasStore ()
88+ const keybindingStore = useKeybindingStore ()
8789const settingStore = useSettingStore ()
8890const canvasInteractions = useCanvasInteractions ()
8991
9092const minimapVisible = computed (() => settingStore .get (' Comfy.Minimap.Visible' ))
93+ const minimapTooltip = computed (() => {
94+ const baseText = t (' graphCanvasMenu.toggleMinimap' )
95+ const keybinding = keybindingStore .getKeybindingByCommandId (
96+ ' Comfy.Canvas.ToggleMinimap'
97+ )
98+ return keybinding ? ` ${baseText } (${keybinding .combo .toString ()}) ` : baseText
99+ })
91100const linkHidden = computed (
92101 () => settingStore .get (' Comfy.LinkRenderMode' ) === LiteGraph .HIDDEN_LINK
93102)
You can’t perform that action at this time.
0 commit comments