Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.
TypeScript ai-artartificial-intelligencegenerative-artimage-generationimg2imginpaintinglatent-diffusionlinuxmacosoutpaintingstable-diffusiontxt2imgwindows
fix(webv2): announce the cmd glyph as Command
joshistoast0ac82380b399
diff --git a/invokeai/frontend/webv2/src/workbench/hotkeys/keyGlyphs.test.ts b/invokeai/frontend/webv2/src/workbench/hotkeys/keyGlyphs.test.tsindex b451a7a1ca..724a0cfcc4 100644--- a/invokeai/frontend/webv2/src/workbench/hotkeys/keyGlyphs.test.ts+++ b/invokeai/frontend/webv2/src/workbench/hotkeys/keyGlyphs.test.ts@@ -1,7 +1,7 @@import { ArrowRightToLineIcon, ChevronUpIcon, CommandIcon, CornerDownLeftIcon, OptionIcon } from 'lucide-react';import { describe, expect, it } from 'vitest';-import { getShortcutKeyIcon } from './keyGlyphs';+import { getShortcutKeyIcon, SHORTCUT_KEY_ARIA_LABELS } from './keyGlyphs';describe('getShortcutKeyIcon', () => {it('gives universal keycap symbols an icon on every platform', () => {@@ -26,3 +26,9 @@ describe('getShortcutKeyIcon', () => {expect(getShortcutKeyIcon('space', false)).toBeNull();});});++describe('SHORTCUT_KEY_ARIA_LABELS', () => {+ it('announces the cmd token as Command', () => {+ expect(SHORTCUT_KEY_ARIA_LABELS.cmd).toBe('Command');+ });+});diff --git a/invokeai/frontend/webv2/src/workbench/hotkeys/keyGlyphs.tsx b/invokeai/frontend/webv2/src/workbench/hotkeys/keyGlyphs.tsxindex 5ea83fefe4..1901d47202 100644--- a/invokeai/frontend/webv2/src/workbench/hotkeys/keyGlyphs.tsx+++ b/invokeai/frontend/webv2/src/workbench/hotkeys/keyGlyphs.tsx@@ -55,7 +55,7 @@ export const SHORTCUT_KEY_ARIA_LABELS: Record<string, string> = {arrowright: 'Arrow right',arrowup: 'Arrow up',backspace: 'Backspace',- cmd: 'Meta',+ cmd: 'Command',ctrl: 'Control',enter: 'Enter',meta: 'Meta',