Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
feat: app-wide keyboard shortcuts and keyboard navigation
aashuc1d997d77e76
diff --git a/.ai/plans/2026-09-07-keyboard-shortcuts-app-wide.md b/.ai/plans/2026-09-07-keyboard-shortcuts-app-wide.mdnew file mode 100644index 0000000000..f0af117e94--- /dev/null+++ b/.ai/plans/2026-09-07-keyboard-shortcuts-app-wide.md@@ -0,0 +1,594 @@+# App-wide keyboard shortcuts — implementation plan++**Spec / source:** `.ai/specs/2026-09-07-keyboard-shortcuts.md`+**Research:** `.ai/research/2026-09-07-keyboard-shortcuts.md`+**Branch:** `feat/keyboard-shortcuts`+**Prior art:** `.ai/plans/2026-09-04-keyboard-shortcuts.md` (the executed Button-infra plan this builds on)+**Gate:** user approves this plan before execution; user commits (or explicitly asks for commits) — never auto-commit.++## Architecture rule (applies to every task)++**Single source of truth.** Every key combo is defined exactly once, in one of three+definition files, and imported everywhere else. All shortcut *logic* (hooks, registry,+guards, badge, overlay, sequence) lives in `packages/react` only. A task that writes a+combo string literal anywhere else is wrong.++- `packages/react/src/shortcuts.ts` — shared combos used by shared components (save, confirm, newRecord, help, sidebarToggle)+- `apps/erp/app/shortcuts.ts` — ERP combos (search, detail tabs, explorer add-line, pagination, module go-to)+- `apps/mes/app/shortcuts.ts` — MES combos (sidebar nav ⌥1–7, start/stop Space)++## Progress++- [x] Task 1: Shared shortcut definitions, `isEditableTarget`, and `useShortcutKeyMap` in @carbon/react+- [x] Task 2: `useShortcutSequence` hook (g-prefix) + tests+- [x] Task 3: Sidebar ⌘B via central constant with input guard+- [x] Task 4: Submit ⌘Enter default with focus-aware guard (@carbon/form + Button `shortcutGuard`) — jsdom tests replaced by pure-core node tests (no DOM test env in repo; see spec Autonomous decisions #1)+- [x] Task 5: ConfirmDelete / Confirm modals ⌘Enter (no MES equivalent exists)+- [x] Task 6: ERP central bindings file `apps/erp/app/shortcuts.ts` (tab constants corrected to real semantics)+- [x] Task 7: Migrate New.tsx and Pagination.tsx off the legacy hook+- [x] Task 8: Migrate DetailsTopbar/DetailSidebar + 8 nav hooks; ⌘⇧P duplicate fixed (Planning → ⌘⇧N)+- [x] Task 9: Migrate 10 Explorers + onboarding theme off the legacy hook+- [x] Task 10: Deleted `useKeyboardShortcuts` AND `usePrettifyShortcut` (both unreferenced)+- [x] Task 11: g-then-letter module go-to in PrimaryNavigation (settings included)+- [x] Task 12: `ShortcutHelpOverlay` (?) + ERP ShortcutHelp mounted in x+/_layout+- [x] Task 13: MES — ⌥1–7 sidebar nav, Space start/stop (single mount verified), MES help overlay+- [x] Task 14: i18n (288 translations filled across 12 locales, linguito + glossary checks green) + gates (react 41 tests, form 35 tests, erp+mes typecheck, lint 33/33) + docs sync (conventions-ui.md, react AGENTS.md). **Pending: browser walkthrough of spec AC 1–9 — dev stack not running; do with `/test` once `crbn up` is up.** Spec moves to `implemented/` after user acceptance. No commits made (user rule).++## Dependencies++Task 1 → all others. Task 2 → 11. Task 6 → 7, 8, 9, 11. Tasks 7, 8, 9 → 10.+Task 12 → 13 (overlay reuse). Task 14 last. Tasks 3, 5, 7 are independent of each+other once their deps are done.++Phases (spec): P1 = 1–4 · P2 = 5 · P3 = 6–10 · P4 = 11–12 · P5 = 13–14.++---++## Task 1: Shared shortcut definitions, `isEditableTarget`, and `useShortcutKeyMap` in @carbon/react++**Depends on:** none+**Files:**+- Create: `packages/react/src/shortcuts.ts`+- Create: `packages/react/src/utils/keyboard.ts` — `isEditableTarget`+- Modify: `packages/react/src/hooks/useShortcutKeys.ts` — add `useShortcutKeyMap`+- Modify: `packages/react/src/index.tsx` — barrel exports+- Modify: `packages/react/src/__tests__/useShortcutKeys.test.ts` — extend+- Copy from (precedent): `packages/react/src/hooks/useShortcutKeys.ts` (existing style), `packages/react/src/utils/dialog.ts`++**Steps:**+1. Create `packages/react/src/shortcuts.ts`:+```typescript+import type { Shortcut, ShortcutInput } from "./hooks/useShortcutKeys";++/**+ * Single source of truth for combos used by SHARED components.+ * App-specific combos live in apps/{erp,mes}/app/shortcuts.ts.+ * Never write a combo string literal at a call site.+ */+export const SHORTCUTS = {+ /** Submit the focused form — fires while typing in a field. */+ save: {+ key: "enter",+ modifiers: ["mod"],+ enabledOnInputElements: true+ } as Shortcut,+ /** Confirm a (destructive) modal action. */+ confirm: "mod+enter" as ShortcutInput,+ /** Open the "New record" page on list views. */+ newRecord: "n" as ShortcutInput,+ /** Open the shortcut help overlay. */+ help: "shift+slash" as ShortcutInput,+ /** Toggle the app sidebar. */+ sidebarToggle: "mod+b" as ShortcutInput+} as const;+```+2. Create `packages/react/src/utils/keyboard.ts` — THE single editable-target check (review must-fix 4; the same logic currently lives ad hoc in the legacy hook, the wedge, and Table):+```typescript+/** True when the event target (or given element) is a text-entry surface that+ * owns its own keys: INPUT, TEXTAREA, SELECT, contenteditable, ProseMirror,+ * cmdk list, or an open listbox/menu. Every shortcut hook/guard uses this —+ * never re-implement the check at a call site. */+export function isEditableTarget(target: EventTarget | Element | null): boolean {+ if (!(target instanceof HTMLElement)) return false;+ if (["INPUT", "TEXTAREA", "SELECT"].includes(target.tagName)) return true;+ if (target.isContentEditable) return true;+ return Boolean(+ target.closest(".ProseMirror, [cmdk-root], [role='listbox'], [role='menu']")+ );+}+```+3. In `useShortcutKeys.ts`, add and export `useShortcutKeyMap` — the modern, collision-proof replacement for the legacy record API (review must-fixes 2 + 3: ONE implementation, a plain listener; entries array, not a Record):+```typescript+export type ShortcutKeyMapEntry = {+ shortcut: ShortcutInput;+ action: (event: KeyboardEvent) => void;+};+export function useShortcutKeyMap(+ entries: ReadonlyArray<ShortcutKeyMapEntry>,+ options?: { disabled?: boolean }+): void;+```+Implementation: a single `document` keydown listener (attached once via `useEffect`, entries/options in refs). Per event: skip when `options.disabled`, when `hasOpenDialog()` (map shortcuts are page-level, never dialog-level), or when `isEditableTarget(event.target)`. Match by resolving each entry through `parseShortcut(entry.shortcut, isMac)`: exact modifier match (mod → metaKey on mac / ctrlKey elsewhere; alt/shift exact) + key match on `event.key.toLowerCase()`, **with a `event.code` fallback for digits and letters when `altKey` is held** (mac Option+1 emits `key: "¡"` but `code: "Digit1"` — review risk 10, built in from the start, not patched later). On match: `event.preventDefault()`, run the action, stop.+ Duplicate protection: in dev (`process.env.NODE_ENV !== "production"`), when two entries resolve to the same combo string, `console.warn` naming both — the legacy `Record` silently dropped duplicates, which is how the ⌘⇧P bug lived for years.+4. Barrel-export from `packages/react/src/index.tsx`: `SHORTCUTS`, `useShortcutKeyMap`, `isEditableTarget` (alongside existing `useShortcutKeys` exports).+5. Extend `packages/react/src/__tests__/useShortcutKeys.test.ts` (or a sibling test file): jsdom dispatch tests for `useShortcutKeyMap` — match fires + preventDefault; editable target skipped; open dialog skipped; alt+digit matches via `event.code`; duplicate entries warn in dev. Pure tests for `isEditableTarget`.++**Verify:**+```bash+pnpm --filter @carbon/react typecheck && pnpm --filter @carbon/react test+# Expected: both pass; test output includes the new useShortcutKeyMap cases+```++**Out of scope:** any app code; the sequence hook (Task 2); overlay UI (Task 12).++---++## Task 2: `useShortcutSequence` hook (g-prefix) + tests++**Depends on:** Task 1+**Files:**+- Create: `packages/react/src/hooks/useShortcutSequence.ts`+- Create: `packages/react/src/__tests__/useShortcutSequence.test.ts`+- Modify: `packages/react/src/hooks/index.ts` and `packages/react/src/index.tsx` — export+- Copy from (precedent): `packages/react/src/hooks/useShortcutKeys.ts` (style), `packages/react/src/utils/dialog.ts` (guards)++**Steps:**+1. Implement (react-hotkeys-hook has no sequence support — this is a plain `document` keydown listener):+```typescript+const SEQUENCE_TIMEOUT_MS = 1500;+/** Two printable keys closer than this are a scanner burst, not a human sequence. */+const SCANNER_BURST_MS = 50;++export function useShortcutSequence({+ prefix, // e.g. "g"+ map, // Record<letter, () => void>+ disabled = false+}: {+ prefix: string;+ map: Record<string, () => void>;+ disabled?: boolean;+}): void;+```+Behavior (document these rules in the JSDoc):+ - Ignore entirely when: `disabled`; `isEditableTarget(event.target)` (the Task 1 util — never re-implement); any of meta/ctrl/alt is pressed; `hasOpenDialog()`.+ - Bare `prefix` keydown arms the sequence for `SEQUENCE_TIMEOUT_MS` (store `armedAt` + last-printable-key timestamp in refs).+ - If the `prefix` keydown arrived within `SCANNER_BURST_MS` of the previous printable keydown, do NOT arm (barcode-wedge burst — see `useKeyboardWedge`); track the previous-printable timestamp on every printable keydown.+ - While armed: a keydown matching a `map` key → `preventDefault()`, run it, disarm. Escape or any non-matching key → disarm. Timeout → disarm.+ - Listener attaches once per mount (`useEffect` with refs for map/disabled so re-renders don't re-attach).+2. Tests (jsdom): arm+match navigates; typing `g` inside an input does nothing; second key after timeout does nothing; burst-speed prefix ignored; Escape disarms.++**Verify:**+```bash+pnpm --filter @carbon/react test+# Expected: useShortcutSequence tests pass+```++**Out of scope:** binding any actual module map (Task 11).++---++## Task 3: Sidebar ⌘B via central constant with input guard++**Depends on:** Task 1+**Files:**+- Modify: `packages/react/src/Sidebar.tsx` — lines 29 and 106–120++**Steps:**+1. Delete `SIDEBAR_KEYBOARD_SHORTCUT` (line 29) and the manual `useEffect` keydown listener (lines 106–120).+2. In `SidebarProvider`, replace with:+```typescript+useShortcutKeys({+ shortcut: SHORTCUTS.sidebarToggle,+ action: (event) => {+ event.preventDefault();+ toggleSidebar();+ }+});+```+imports from `./hooks/useShortcutKeys` and `./shortcuts`. This intentionally adds the input-field guard the old listener lacked (hook default: inert in inputs) — spec'd behavior fix.++**Verify:**+```bash+pnpm --filter @carbon/react typecheck && grep -rn "SIDEBAR_KEYBOARD_SHORTCUT" packages/react/src/+# Expected: typecheck passes; grep returns nothing+```++**Out of scope:** changing the combo; MES/ERP layout files.++---++## Task 4: Submit ⌘Enter default with focus-aware guard++**Depends on:** Task 1+**Files:**+- Modify: `packages/react/src/Button.tsx` — add optional `shortcutGuard` prop+- Create: `packages/form/src/internal/submitShortcutRegistry.ts`+- Modify: `packages/form/src/components/Submit.tsx`+- Copy from (precedent): `packages/form/src/components/Submit.tsx` (current shape read 2026-09-07; Button wiring at `packages/react/src/Button.tsx:172-192`)++**Steps:**+1. `Button.tsx`: add to `ButtonProps`:+```typescript+/** Extra guard AND-composed with the built-in topmost-dialog guard. */+shortcutGuard?: (event: KeyboardEvent) => boolean;+```+Compose in the existing `useShortcutKeys` call: `guard: (e) => dialogGuard() && (shortcutGuard?.(e) ?? true)` (keep `dialogGuard` as-is; destructure `shortcutGuard` out of props so it doesn't hit the DOM).+2. Create `packages/form/src/internal/submitShortcutRegistry.ts` — module-level singleton:+```typescript+/** Buttons currently mounted with an active save shortcut; the focus-aware+ * guard uses size===1 to decide the no-focus fallback. */+const registry = new Set<symbol>();+export function registerSubmitShortcut(id: symbol) { registry.add(id); }+export function unregisterSubmitShortcut(id: symbol) { registry.delete(id); }+export function submitShortcutCount() { return registry.size; }+```+3. `Submit.tsx`:+ - Props: `shortcut?: ButtonProps["shortcut"] | false;` — default: `SHORTCUTS.save` (import from `@carbon/react`). `false` disables entirely.+ - Keep an internal `buttonRef` merged with the forwarded ref (copy the `mergeRefs` pattern from `Button.tsx:211`).+ - Register in the module registry via `useEffect` whenever the shortcut is active (i.e. not `false` and not disabled/submitting); unregister on cleanup/deps change.+ - Focus-aware guard passed as `shortcutGuard` (review must-fix 1 — the truth table below is the contract):+```typescript+const shortcutGuard = useCallback((event: KeyboardEvent) => {+ const el = buttonRef.current;+ if (!el) return false;+ const active = document.activeElement;+ if (active instanceof HTMLElement) {+ const activeForm = active.closest("form");+ // Typing in THIS form → submit it. Typing anywhere else that accepts+ // text (another form, the agent chat's formless textarea, a search box,+ // ProseMirror…) → never steal the keystroke (lesson .ai/lessons.md:373).+ if (activeForm) return activeForm === el.form;+ if (isEditableTarget(active)) return false;+ }+ // Focus on a non-editable element or body: fire only when this is the+ // sole active Submit on screen — ambiguity means no-op, never "all".+ return submitShortcutCount() === 1;+}, []);+```+ Truth table (each row becomes a test in step 6): focus in own form → fires; focus in another form → no-op; focus in a formless editable (e.g. `AgentInput`'s bare `<textarea>`, apps/erp/app/modules/agent/ui/AgentInput.tsx:39) → no-op; focus on body with one active Submit → fires; focus on body with two active Submits → no-op. `isEditableTarget` comes from `@carbon/react` (Task 1). Note `el.form` resolves both the `form={formId}` attribute case and ancestor-form case natively.+ - Pass to Button: `shortcut={shortcut === false ? undefined : shortcut}`, `shortcutGuard`, and `hideShortcutKey` only if a caller sets it (default badge VISIBLE — the ⌘↵ keycap is the discoverability mechanism).+4. Do NOT change `DefaultDisabledSubmit` — it renders `Submit` and inherits.+5. Escape hatch: if any existing `Submit` call site breaks visually because the badge collides with a custom `rightIcon` (grep `rightIcon` within `<Submit`), leave the badge winning (Button's documented contract) and note the sites in the run log. If typecheck reveals a `Submit` call site already passing `shortcut`, STOP and report — do not improvise.+6. **jsdom truth-table test** (review improvement 11 — this is the riskiest logic in the whole plan and must not ship untested): new `packages/form/src/components/__tests__/Submit.shortcut.test.tsx` (follow whatever test setup `packages/form` already uses — check for an existing `__tests__`/`*.test.tsx` and mirror it) covering all five truth-table rows from step 3, plus: registry count drops when a Submit unmounts or becomes disabled.+7. Known limitation to note inline: a mounted-but-invisible Submit (collapsed section) still counts — `count > 1` then fails safe to no-op (review risk 8). During Task 14 verification, check one collapsed-card screen.++**Verify:**+```bash+pnpm --filter @carbon/form typecheck && pnpm --filter @carbon/form test && pnpm --filter @carbon/react typecheck+# Expected: all pass; test output lists the Submit shortcut truth-table cases+pnpm exec turbo run typecheck --filter=erp --filter=mes+# Expected: passes — no Submit call site conflicts+```+After this task, render-audit a few dense screens for badge layout churn (quote line drawer footer, a settings form, a ModalDrawerFooter with 3 buttons) — `hideShortcutKey` is the escape valve per site if a footer wraps (review risk 5).++**Out of scope:** the 150 raw `type="submit"` buttons (only ConfirmDelete/Confirm get shortcuts, Task 5); changing blocker logic.++---++## Task 5: ConfirmDelete / Confirm modals ⌘Enter++**Depends on:** Task 1+**Files:**+- Modify: `apps/erp/app/components/Modals/ConfirmDelete/ConfirmDelete.tsx` — destructive Button (line ~69)+- Modify: `apps/erp/app/components/Modals/Confirm/Confirm.tsx` — its confirm Button (read the file first; same pattern)++**Steps:**+1. In both: `import { SHORTCUTS } from "@carbon/react"` (via the existing `@carbon/react` import) and add `shortcut={SHORTCUTS.confirm}` to the confirm/destructive `Button`. No guard needed — Button's topmost-dialog guard already scopes it to the open modal, and `isDisabled`/`isLoading` already deactivate it while the fetcher is busy.+ Add this comment beside the prop (review risk 6 — the pairing is tie-break-dependent): `Drawer and Modal are both z-50 (Drawer.tsx:23, Modal.tsx:35), so when this modal stacks over a drawer form the topmost-dialog guard resolves by "later-mounted wins" (utils/dialog.ts). If either z-index ever changes, re-verify ⌘Enter targets this modal, not the drawer's Submit.`+2. Grep for a MES equivalent (`grep -rn "ConfirmDelete" apps/mes/app/components/`) — if MES has its own copy, apply the same one-line change; if not, skip.++**Verify:**+```bash+pnpm exec turbo run typecheck --filter=erp+# Expected: passes+```++**Out of scope:** other modal footers; bare-Enter bindings.++---++## Task 6: ERP central bindings file++**Depends on:** Task 1+**Files:**+- Create: `apps/erp/app/shortcuts.ts`+- Modify: `apps/erp/app/components/Layout/Topbar/Search.tsx` — move `searchShortcut` definition out (keep a re-export for back-compat or update its importers)+- Copy from (precedent): `apps/erp/app/utils/path.ts` (the "typed central helper" idiom)++**Steps:**+1. Create `apps/erp/app/shortcuts.ts` — every ERP combo, one place:+```typescript+import { SHORTCUTS, type ShortcutDefinition, type ShortcutInput } from "@carbon/react";++export { SHORTCUTS };++export const searchShortcut: ShortcutDefinition = { key: "K", modifiers: ["mod"] }; // moved from Search.tsx++/** Detail-page section tabs (⌘⇧<letter>). Planning is N — P was double-bound to Purchasing for years. */+export const DETAIL_TAB_SHORTCUTS = {+ details: "mod+shift+d",+ attributes: "mod+shift+a",+ accounting: "mod+shift+a",+ purchasing: "mod+shift+p",+ planning: "mod+shift+n",+ inventory: "mod+shift+i",+ quoting: "mod+shift+q",+ manufacturing: "mod+shift+x",+ suppliers: "mod+shift+x",+ contacts: "mod+shift+c",+ locations: "mod+shift+l",+ terms: "mod+shift+t",+ shipping: "mod+shift+s",+ sales: "mod+shift+s",+ documents: "mod+shift+r"+} as const satisfies Record<string, ShortcutInput>;++/** Explorer (document line tree) actions. */+export const EXPLORER_SHORTCUTS = {+ addLine: "mod+shift+l",+ addAttribute: "mod+shift+a",+ addParameter: "mod+shift+p"+} as const satisfies Record<string, ShortcutInput>;++export const PAGINATION_SHORTCUTS = {+ previous: "arrowleft",+ next: "arrowright"+} as const satisfies Record<string, ShortcutInput>;++/** g-then-letter module go-to, keyed by the stable module `key` from useModules(). */+export const MODULE_GO_TO: Record<string, string> = {+ accounting: "a",+ documents: "d",+ inventory: "i",+ invoicing: "v",+ parts: "t",+ people: "o",+ production: "r",+ purchasing: "p",+ quality: "q",+ resources: "u",+ sales: "s",+ settings: "e",+ users: "y",+ workflows: "w"+};+```+ (Exact per-page tab keys: while migrating in Task 8, map each nav hook's existing legacy string to the matching constant; the table above covers every combo found in the survey — if a nav hook has a combo not listed here, add it to this file, never inline.)+2. `Search.tsx`: replace the local `export const searchShortcut ...` with `export { searchShortcut } from "~/shortcuts";` — or update the two importers (`PrimaryNavigation.tsx`, and grep for others) to import from `~/shortcuts` and delete the old export. Prefer updating importers + deleting.++**Verify:**+```bash+pnpm exec turbo run typecheck --filter=erp && grep -rn "searchShortcut" apps/erp/app --include="*.tsx" --include="*.ts" -l+# Expected: typecheck passes; searchShortcut only defined in app/shortcuts.ts, imported elsewhere+```++**Out of scope:** binding anything new (Tasks 8, 9, 11).++---++## Task 7: Migrate New.tsx and Pagination.tsx off the legacy hook++**Depends on:** Tasks 1, 6+**Files:**+- Modify: `apps/erp/app/components/New.tsx`+- Modify: `apps/erp/app/components/Table/components/Pagination/Pagination.tsx`+- Copy from (precedent): `apps/erp/app/components/Gantt/Gantt.tsx:1249-1287` (Button `shortcut=` usage)++**Steps:**+1. `New.tsx`: delete `useKeyboardShortcuts`/`buttonRef`/`Kbd` tooltip; pass `shortcut={SHORTCUTS.newRecord}` on the existing `Button asChild` (keycap badge replaces the tooltip — keep the `Tooltip` only if the label alone is ambiguous; otherwise remove the Tooltip wrapper entirely, matching Gantt's plain-Button style). Import `SHORTCUTS` from `~/shortcuts`.+2. `Pagination.tsx`: replace the `useKeyboardShortcuts({ ArrowRight: ..., ArrowLeft: ... })` call (lines ~113–122) with `useShortcutKeyMap([{ shortcut: PAGINATION_SHORTCUTS.next, action: ... }, { shortcut: PAGINATION_SHORTCUTS.previous, action: ... }])`. Replace the four `prettifyShortcut("ArrowLeft"/"ArrowRight")` tooltip hints with `<ShortcutKey shortcut={PAGINATION_SHORTCUTS.previous|next} variant="small" />`.+3. Behavior check: legacy fired single keys on keyUp; the new map fires on keydown — accepted change (spec).++**Verify:**+```bash+pnpm exec turbo run typecheck --filter=erp && grep -n "useKeyboardShortcuts" apps/erp/app/components/New.tsx apps/erp/app/components/Table/components/Pagination/Pagination.tsx+# Expected: typecheck passes; grep returns nothing+```++**Out of scope:** table row navigation (spec non-goal).++---++## Task 8: Migrate DetailsTopbar/DetailSidebar + nav-hook combos; fix ⌘⇧P duplicate++**Depends on:** Tasks 1, 6+**Files:**+- Modify: `apps/erp/app/components/Layout/Navigation/DetailsTopbar.tsx`+- Modify: `apps/erp/app/components/Layout/Navigation/DetailSidebar.tsx`+- Modify (combo strings only — find with `grep -rln 'shortcut: "Command' apps/erp/app`): `useInventoryNavigation.tsx`, `usePartNavigation.tsx`, `useMaterialNavigation.tsx`, `useConsumableNavigation.tsx`, `useToolNavigation.tsx`, `useServiceNavigation.tsx`, `useSupplierSidebar.tsx`, `useCustomerSidebar.tsx` (paths under `apps/erp/app/modules/*/ui/**` — grep locates them)++**Steps:**+1. Both nav components: change the `links` type's `shortcut?: string` to `shortcut?: ShortcutInput` (import type from `@carbon/react`); replace the `useKeyboardShortcuts(reduce...)` with `useShortcutKeyMap(links.filter(l => l.shortcut).map(l => ({ shortcut: l.shortcut!, action: () => navigate(...) })))` — the hook's dev duplicate-combo warning replaces the legacy silent overwrite; replace `usePrettifyShortcut` tooltip content with `<ShortcutKey shortcut={route.shortcut} variant="small" />`.+2. In each nav hook file: replace every legacy `"Command+Shift+<x>"` string with the matching `DETAIL_TAB_SHORTCUTS.<name>` import from `~/shortcuts`. **The fix:** in `usePartNavigation`, `useMaterialNavigation`, `useConsumableNavigation`, `useToolNavigation`, the SECOND `Command+Shift+p` entry (the Planning link) becomes `DETAIL_TAB_SHORTCUTS.planning` (⌘⇧N); the Purchasing link keeps `DETAIL_TAB_SHORTCUTS.purchasing`.+3. If a nav hook contains a combo with no matching constant, add a named constant to `apps/erp/app/shortcuts.ts` first — never inline.++**Verify:**+```bash+pnpm exec turbo run typecheck --filter=erp+grep -rn '"Command+' apps/erp/app | grep -v Explorer+# Expected: typecheck passes; grep finds no remaining legacy combo strings outside Explorers (Task 9)+grep -rn "mod+shift+p" apps/erp/app/modules/items+# Expected: exactly one match per item nav hook (Purchasing only)+```++**Out of scope:** adding new tab shortcuts; Explorers (Task 9).++---++## Task 9: Migrate 9 Explorers + onboarding theme off the legacy hook++**Depends on:** Tasks 1, 6+**Files:**+- Modify (find with `grep -rln "useKeyboardShortcuts" apps/erp/app`): `QuoteExplorer.tsx`, `SalesOrderExplorer.tsx`, `SalesRFQExplorer.tsx`, `PurchaseOrderExplorer.tsx`, `SupplierQuoteExplorer.tsx`, `PurchasingRFQExplorer.tsx`, `PurchaseInvoiceExplorer.tsx`, `SalesInvoiceExplorer.tsx`, `ProcedureExplorer.tsx`, `TrainingExplorer.tsx`, `apps/erp/app/routes/onboarding+/theme.tsx`++**Steps:**+1. Each Explorer: replace `useKeyboardShortcuts({ "Command+Shift+l": fn, ... })` with `useShortcutKeyMap([{ shortcut: EXPLORER_SHORTCUTS.addLine, action: fn }, ...])` (constants from `~/shortcuts`); replace `<Kbd>{prettifyShortcut("Command+Shift+l")}</Kbd>` hints with `<ShortcutKey shortcut={EXPLORER_SHORTCUTS.addLine} variant="small" />`.+2. `theme.tsx`: replace its Enter binding with `useShortcutKeys({ shortcut: "enter", action: ... })` — this is a single-purpose onboarding page; "enter" here is page-scoped and pre-existing (not a new bare-key global). If the Enter handler is on a Button, prefer `Button shortcut="enter"`.+3. After this task the ONLY remaining importer of `useKeyboardShortcuts` should be none — confirm with grep before Task 10.++**Verify:**+```bash+pnpm exec turbo run typecheck --filter=erp && grep -rn "useKeyboardShortcuts\|prettifyShortcut" apps/erp/app | grep -v node_modules+# Expected: typecheck passes; grep returns nothing+```++**Out of scope:** changing which actions Explorers expose.++---++## Task 10: Delete the legacy hooks++**Depends on:** Tasks 7, 8, 9+**Files:**+- Delete: `packages/react/src/hooks/useKeyboardShortcuts.ts`+- Maybe delete: `packages/react/src/hooks/usePrettifyShortcut.ts` (only if `grep -rn "usePrettifyShortcut" apps packages` finds no remaining users)+- Modify: `packages/react/src/hooks/index.ts` (and `packages/react/src/index.tsx` if re-exported) — remove exports++**Steps:**+1. `grep -rn "useKeyboardShortcuts" apps packages --include="*.ts*"` — must return only the hook file itself. If any consumer remains, STOP and report (a migration task missed it).+2. Delete the file(s), remove barrel exports.++**Verify:**+```bash+pnpm --filter @carbon/react typecheck && pnpm exec turbo run typecheck --filter=erp --filter=mes+# Expected: all pass — nothing references the deleted hooks+```++**Out of scope:** `useEscape`, `useKeyboardWedge` (still legitimate).++---++## Task 11: g-then-letter module go-to in PrimaryNavigation++**Depends on:** Tasks 2, 6+**Files:**+- Modify: `apps/erp/app/components/Layout/Navigation/PrimaryNavigation.tsx` (existing `useShortcutKeys` for search at line ~235 is the precedent)++**Steps:**+1. In `PrimaryNavigation`, after the existing modules load (`useModules()`), build the sequence map from `MODULE_GO_TO` (import `~/shortcuts`), including only modules the user can see (the hook already permission-filters), and `navigate(module.to)`:+```typescript+const modules = useModules();+const navigate = useNavigate();+const goToMap = useMemo(() => {+ const map: Record<string, () => void> = {};+ for (const m of modules) {+ const letter = MODULE_GO_TO[m.key];+ if (letter) map[letter] = () => navigate(m.to);+ }+ return map;+}, [modules, navigate]);+useShortcutSequence({ prefix: "g", map: goToMap });+```+2. Escape hatch: if `useModules()` in this component doesn't expose `key`/`to` in that shape, read `apps/erp/app/hooks/useModules.tsx` and adapt the property names — do not change the central `MODULE_GO_TO` shape. The `settings` module comes from `useSettingsModule()` — include it iff trivially available; otherwise drop `g e` and note it in the run log.++**Verify:**+```bash+pnpm exec turbo run typecheck --filter=erp+# Expected: passes+```++**Out of scope:** badges/hints for sequences (help overlay covers discoverability, Task 12); MES.++---++## Task 12: `ShortcutHelpOverlay` + mount in ERP layout++**Depends on:** Task 1+**Files:**+- Create: `packages/react/src/ShortcutHelpOverlay.tsx`+- Modify: `packages/react/src/index.tsx` — export+- Create: `apps/erp/app/components/ShortcutHelp.tsx` (app wrapper providing translated entries)+- Modify: `apps/erp/app/routes/x+/_layout.tsx` — mount `<ShortcutHelp />` next to `<AgentRoot />` (~line 473–487)+- Copy from (precedent): `apps/erp/app/components/Layout/Topbar/Search.tsx` (SearchModal — a `Modal` opened by a `useShortcutKeys` binding); `packages/react/src/ShortcutKey.tsx` (keycap rendering)++**Steps:**+1. `ShortcutHelpOverlay.tsx` (packages/react — dumb component; there is deliberately NO runtime registry — review improvement 12 cut it as speculative; the overlay renders exactly what the app declares, built from the central constants, which stays single-source by construction):+```typescript+export type ShortcutHelpEntry = {+ /** Rendered as keycaps. A string[] means a sequence ("g" then "s"). */+ shortcut: ShortcutInput | string[];+ description: string; // translated by the app+ group: string; // translated section heading+};+type ShortcutHelpOverlayProps = {+ title: string;+ entries: ShortcutHelpEntry[];+ emptyLabel: string;+};+```+Binds `SHORTCUTS.help` via `useShortcutKeys` (guard: skip when `hasOpenDialog()` so `?` typed in a modal's field never opens it — the hook's input-guard already covers fields). Renders a `Modal` grouping entries by `group`, each row `description` + keycaps. Export a row-building helper from this file so both apps only declare data (review improvement 13): sequence entries (`string[]`) render one `<ShortcutKey>` per element with a small "then" separator.+2. `apps/erp/app/components/ShortcutHelp.tsx`: `useLingui()` and pass translated `title`/`emptyLabel`/`entries` — built from central constants ONLY (`~/shortcuts` + `SHORTCUTS`): search ⌘K, sidebar ⌘B, save ⌘↵, confirm ⌘↵, new N, pagination ←/→, detail tabs (one row: "⌘⇧<letter> — jump to section"), explorer add-line, and one row per `MODULE_GO_TO` entry as `["g", letter]`.+3. Layout: mount `<ShortcutHelp />` inside the authenticated shell.+4. All strings via `useLingui`/`<Trans>` (i18n rule: NO `t` from `@lingui/core/macro`).++**Verify:**+```bash+pnpm --filter @carbon/react typecheck && pnpm exec turbo run typecheck --filter=erp+# Expected: passes+```++**Out of scope:** MES mount (Task 13); persisting overlay state.++---++## Task 13: MES — ⌥1–7 sidebar nav, Space start/stop, help overlay++**Depends on:** Tasks 1, 12+**Files:**+- Create: `apps/mes/app/shortcuts.ts`+- Modify: `apps/mes/app/components/AppSidebar.tsx` (nav links array ~line 195–232)+- Modify: `apps/mes/app/components/JobOperation/components/Controls.tsx` (the `StartStopForm` rendering Play/Pause at ~line 300–315)+- Create: `apps/mes/app/components/ShortcutHelp.tsx`; Modify: `apps/mes/app/routes/x+/_layout.tsx` (provider + mount, next to the existing `useKeyboardWedge` wiring ~line 339–351)++**Steps:**+1. `apps/mes/app/shortcuts.ts`:+```typescript+import { SHORTCUTS, type ShortcutInput } from "@carbon/react";+export { SHORTCUTS };+/** ⌥+digit — ⌘+digit is browser-reserved tab switching. Order matches AppSidebar. */+export const MES_NAV_SHORTCUTS: Record<string, ShortcutInput> = {+ operations: "alt+1", assigned: "alt+2", active: "alt+3", recent: "alt+4",+ jobs: "alt+5", maintenance: "alt+6", picking: "alt+7"+};+export const START_STOP_SHORTCUT: ShortcutInput = "space";+```+2. `AppSidebar.tsx`: add a `key` to each link matching `MES_NAV_SHORTCUTS` keys; one `useShortcutKeyMap` with entries mapping each `MES_NAV_SHORTCUTS` combo → `navigate(link.to)`. mac ⌥+digit matching is already handled by the hook's `event.code` fallback (Task 1) — verify it manually on mac during Task 14; if it still fails, STOP and report rather than dropping the feature.+3. `Controls.tsx`: in `StartStopForm` (the component wrapping `<PlayButton|PauseButton type="submit">` in the `ValidatedForm`), add a ref on the rendered button and:+```typescript+useShortcutKeys({+ shortcut: START_STOP_SHORTCUT,+ action: (event) => { event.preventDefault(); buttonRef.current?.click(); },+ guard: () => !hasOpenDialog(),+ disabled: fetcher.state !== "idle"+});+```+(`hasOpenDialog` is already barrel-exported from `@carbon/react` — index.tsx:577; `ButtonWithTooltip` wraps a plain `<button>`, so forward a ref via `ComponentProps<"button">`'s existing pass-through or wrap with a local ref callback.) Space stays inert in inputs (hook default). Two multiplicity checks (review risk 9), both STOP-and-report if violated: (a) AssemblyView (`assembly.$operationId`) and this operation screen are separate routes, so the two Space handlers never coexist; (b) exactly ONE `StartStopForm` mounts per screen — if any route renders several (e.g. a future list of operations), Space would click all of them.+4. Mount a MES `ShortcutHelp.tsx` (entries from `MES_NAV_SHORTCUTS`, `START_STOP_SHORTCUT`, `SHORTCUTS.save`, `SHORTCUTS.sidebarToggle`, and the existing AssemblyView Enter/Space/←/→ as rows) in `apps/mes/app/routes/x+/_layout.tsx`, reusing the Task 12 overlay + row helper.++**Verify:**+```bash+pnpm exec turbo run typecheck --filter=mes+# Expected: passes+```++**Out of scope:** changing AssemblyView's existing key handling; scanner wedge behavior.++---++## Task 14: i18n + full verification sweep++**Depends on:** all+**Steps:**+1. `pnpm lingui:extract` — new `.po` entries appear for overlay/help strings. Then fill translations via the `/translate` skill (per repo convention; do NOT leave empty msgstr).+2. Full gates:+```bash+pnpm --filter @carbon/react typecheck && pnpm --filter @carbon/react test+pnpm --filter @carbon/form typecheck && pnpm --filter @carbon/form test+pnpm exec turbo run typecheck --filter=erp --filter=mes+pnpm run lint+# Expected: all green+```+3. Manual/browser verification (requires the local dev stack; if not running, list this as pending for the user rather than starting Docker): walk spec acceptance criteria 1–9 with agent-browser via the `/auth` + `/test` skills — closed-loop per the lesson at `.ai/lessons.md:1292` (fresh reload per check).+4. Update docs-sync dependents per `.claude/rules/keep-sources-in-sync.md`: grep `.claude/rules` and `packages/react/AGENTS.md` for `useKeyboardShortcuts` AND `usePrettifyShortcut`; update `conventions-ui.md`'s Button props list (currently omits `shortcut`/`hideShortcutKey`; add `shortcutGuard`) and `packages/react/AGENTS.md` Key Patterns; record any new lesson (candidates: topmost-dialog tie-break dependency, focus-aware submit guard) in `.ai/lessons.md`.+5. Move `.ai/specs/2026-09-07-keyboard-shortcuts.md` to `.ai/specs/implemented/` after the user accepts the work (update it first if implementation diverged).+6. Present the diff summary to the user for commit approval (never auto-commit).diff --git a/.ai/research/2026-09-07-keyboard-shortcuts.md b/.ai/research/2026-09-07-keyboard-shortcuts.mdnew file mode 100644index 0000000000..9aaf1c2ae0--- /dev/null+++ b/.ai/research/2026-09-07-keyboard-shortcuts.md@@ -0,0 +1,147 @@+# Research: App-wide keyboard shortcuts (2026-09-07)++Branch: `feat/keyboard-shortcuts`. Base infra merged via PR #1569.++## 1. Button shortcut API (packages/react)++`packages/react/src/Button.tsx` — `ButtonProps`:++- `shortcut?: ShortcutInput | ShortcutInput[]` — react-hotkeys-hook string (`"mod+s"`, `"enter"`) or structured `ShortcutDefinition` (`{ mac, windows }` arms or `{ key, modifiers, enabledOnInputElements }`); array = alternatives, badge shows the first.+- `hideShortcutKey?: boolean` — hotkey active, keycap badge hidden.+- Fires via ref `.click()` (`Button.tsx:182-185`) with `preventDefault()` — so `type="submit"` still submits the form; disabled native no-op.+- Inert while disabled/loading, and while a dialog the button isn't inside is open (dialog guard `packages/react/src/utils/dialog.ts`: `hasOpenDialog` / `topmostOpenDialog` by computed z-index / `isInsideTopmostDialog`).+- Badge: `ShortcutKey` rendered inside the button (`Button.tsx:226-231`); suppressed when `hideShortcutKey`, `isIcon`, or `isLoading`; badge wins over `rightIcon` (`Button.tsx:234`).+- `IconButton` inherits shortcut props; badge never renders (isIcon) but hotkey works.+- NOT wired: `MenuItem`, `DropdownMenuItem`, `SplitButton`, form `Submit`. Visual-only spans exist: `DropdownMenuShortcut`, `ContextMenuShortcut`, `CommandShortcut`, `MenuShortcut`.++### Hook: `packages/react/src/hooks/useShortcutKeys.ts`++- Wraps react-hotkeys-hook `useHotkeys`. `Modifier = alt|ctrl|meta|shift|mod` (`mod` = ⌘ on mac / Ctrl elsewhere). `KeyboardKeys` enum.+- `useShortcutKeys({ shortcut, action, disabled?, enabledOnInputElements?, guard? })`.+- Shortcuts are inert inside inputs/contenteditable by default (`enableOnFormTags` off). Button does NOT expose `enabledOnInputElements` — button shortcuts don't fire while typing in a field unless the structured first binding sets it.+- With multiple bindings only the FIRST binding's `enabledOnInputElements` is honored.+- Badge renderer: `packages/react/src/ShortcutKey.tsx` (small/medium variants, mac glyphs vs Ctrl+ text, sr-only a11y combo). Usable standalone (e.g. PrimaryNavigation.tsx:273).+- Tests: `packages/react/src/__tests__/useShortcutKeys.test.ts`.+- Older unrelated primitives: `Kbd.tsx`, `hooks/useKeyboardShortcuts.ts`.++### Commits (PR #1569)++`12f97afac0` (Button shortcut prop), `15e79a1675` (MES assembly consumer), `d858f80bca` (topmost-dialog scope + sr), `fed1d150af` (z-index topmost), `2581f34ce3` (MES refactor).++### Usage examples++```tsx+<Button shortcut="enter" onClick={record}>Record</Button>+<Button shortcut="mod+s" hideShortcutKey type="submit">Save</Button>+<Button shortcut={["enter", "space"]} />+<ShortcutKey shortcut="mod+k" variant="small" />+```++## Lessons (.ai/lessons.md)++- lessons.md:373-379 — Table owns an Excel keyboard model: `onKeyDownCapture` on the container beats react-aria; react-aria NumberField swallows Enter and consumes arrows; portaled overlays (`[data-radix-popper-content-wrapper]`, `[role=menu|listbox|dialog]`) own their keys. Don't fight it.+- lessons.md:1292-1295 — browser-verifying keyboard flows: closed loop (wipe rows, fresh reload, check DB per keypress).++## 2. Existing shortcut usage survey++### Libraries++react-hotkeys-hook (catalog:) in packages/react + all apps; cmdk 0.2.0 (combobox UI only, no global palette); no mousetrap/tinykeys/kbar.++### Three parallel shortcut systems (must reconcile)++| System | File | Notes |+|---|---|---|+| `useShortcutKeys` (modern, preferred) | packages/react/src/hooks/useShortcutKeys.ts | wraps react-hotkeys-hook; mac/windows arms, mod, guard, alt bindings |+| `useKeyboardShortcuts` (legacy) | packages/react/src/hooks/useKeyboardShortcuts.ts | hand-rolled window listener; literal strings `"n"`, `"Command+Shift+l"`; skips INPUT/TEXTAREA/SELECT/ProseMirror; single-key fires on keyUp, combos on keyDown; `Record<string,fn>` shape silently drops duplicate combos |+| `useEscape` | packages/react/src/hooks/useEscape.tsx | global Escape, no guards |+| `useKeyboardWedge` (scanner) | packages/react/src/hooks/useKeyboardWedge.ts | barcode buffer; flushes on Enter, clears on Escape/3s; skips inputs |+| `usePrettifyShortcut` | packages/react/src/hooks/usePrettifyShortcut.ts | formats legacy strings for display |++### Global shortcuts already taken++| Combo | Action | Location |+|---|---|---|+| ⌘K | Global search modal | Search.tsx:70 (searchShortcut); bound PrimaryNavigation.tsx:235-238 |+| ⌘B | Toggle sidebar (all apps, hard-coded, NO input guard) | packages/react/src/Sidebar.tsx:29,106-118 |+| ⌘L | Toggle AI agent panel (fires inside inputs too) | apps/erp/app/modules/agent/ui/AgentRoot.tsx:23-28 |+| n (bare) | Click "New" button on list pages | apps/erp/app/components/New.tsx:26-31, Kbd hint :49 |+| ← / → (bare) | Prev/next table page | Table/components/Pagination/Pagination.tsx:113-122 |+| Enter | Onboarding theme advance | onboarding+/theme.tsx:117-121 |++### ⌘⇧<letter> family — detail-page tab nav (legacy hook)++DetailSidebar.tsx:31-38 + DetailsTopbar.tsx:38-50 auto-bind nav-link `shortcut` fields; tooltips via prettifyShortcut. Used combos: ⌘⇧D (details), ⌘⇧A, ⌘⇧P (DUPLICATED twice per item nav — existing bug, second silently wins: usePartNavigation.tsx:48 vs :64 + siblings), ⌘⇧I, ⌘⇧Q, ⌘⇧X, ⌘⇧C, ⌘⇧L, ⌘⇧T, ⌘⇧S, ⌘⇧R.++Explorer add-line shortcuts (page-scoped, same namespace): ⌘⇧L = add line in Quote/SalesOrder/SalesRFQ/PurchaseOrder/SupplierQuote/PurchasingRFQ/PurchaseInvoice/SalesInvoice Explorers; ⌘⇧A add attribute/question (ProcedureExplorer:220, TrainingExplorer:174); ⌘⇧P add parameter (ProcedureExplorer:230). Hints via `<Kbd>{prettifyShortcut(...)}`.++**Free letters in ⌘⇧ namespace: B, E, F, G, H, J, K, M, N, O, U, V, W, Y, Z.**++### Scoped/view-local (ERP)++- Gantt.tsx:1248-1332 — e/c/d expand/collapse/durations, 0-9 depth, arrows.+- TraceabilityGraph.tsx:183-200 — `/` or ⌘K page-local node search (shadows global ⌘K).+- viewer AssemblyPlayer: ⌘A select-all, Alt drill; MotionPathEditor: Delete/Backspace.+- Escape: ActionBar.tsx:322, useLineOrderEditMode.ts:105, Table.tsx:578, Grid.tsx:133.+- Table.tsx:662-800 (onKeyDownCapture :1101) + Grid.tsx:194-270 — Excel model: Tab/Enter/Shift+Enter/arrows/printable-starts-edit/Escape.+- TreeView.tsx:458-540 — Home/End/arrows/Escape roving tabindex.+- Tiptap slash/mention menus, workflows Builder (React Flow consumes arrows/Enter/Space/Delete; stopCanvasKeys guards), VariableTreeMenu capture-phase arrows.++### MES++- Wedge app-wide: mes x+/_layout.tsx:339-351 and erp x+/_layout.tsx:351-361 — scanned URL navigates.+- AssemblyView.tsx:1188-1268 — Enter/Space fire step primary action; ←/→ prev/next step. Guards to copy: `!hasOpenDialog()`, `!(Enter && wedgeBuffer !== "")`, ARMED_SWALLOW_MS=750 capture swallow for double-press clickers.+- Many modal-local Enter handlers (ReworkModal, SerialSelectorModal, IssueMaterialModal, InspectionMeasurementMatrix).+- MES has NO ⌘K/global search.++### Display components++`ShortcutKey` (modern keycap; Button auto-renders), `Kbd` (legacy hints in New.tsx, Explorers, academy SearchCommand ⌘K literal), `DropdownMenuShortcut`/`ContextMenuShortcut`/`MenuShortcut`/`CommandShortcut` exported but unused — menus currently show no hints.++### Collision hazards++1. ⌘K taken (global search + traceability local). 2. ⌘B hard-coded UI-kit sidebar, no input guard. 3. ⌘L AI agent, fires in inputs. 4. ⌘⇧ letter space heavily used. 5. Bare n/e/c/d/0-9 taken. 6. Bare Enter/Space/arrows load-bearing in MES + Table/Grid/TreeView. 7. Two hook systems disagree (syntax, keyup/keydown, dup-dropping). 8. Wedge owns Enter while a scan burst is buffered — global Enter bindings must replicate the wedgeBuffer guard.++## 3. App structure / attach points++### Form/submit infrastructure++- Vendored fork of remix-validated-form at `packages/form` (`@carbon/form`), zod + zod-form-data. NOT conform/rvf.+- `packages/form/src/components/Submit.tsx` — THE shared submit button, wraps Button; reads form state ctx, isSubmitting, owns useBlocker unsaved-changes modal. Also `DefaultDisabledSubmit`.+- ERP counts: 511 `<ValidatedForm` (281 files), 287 `<Submit` (234 files), 150 raw `type="submit"` (tail: fetcher.Form one-shots, status changes, ConfirmDelete), 1057 `<Button`. MES: 18 ValidatedForm, 10 Submit, 116 Button.++### Shared components ranked by leverage++| Rank | Component | Reach |+|---|---|---|+| 1 | Button `shortcut` prop (packages/react/src/Button.tsx) | ~1057 ERP + 116 MES, only 13 call sites use it |+| 2 | Submit (packages/form/src/components/Submit.tsx) | 287 save buttons / 234 files |+| 3 | ConfirmDelete (apps/erp/app/components/Modals/ConfirmDelete/ConfirmDelete.tsx) | 181 files; raw destructive `type="submit"` in fetcher.Form. Sibling: Modals/Confirm/Confirm.tsx |+| 4 | Table (apps/erp/app/components/Table/Table.tsx, 1567 lines) | 127 list pages; `primaryAction` slot; edit-mode-only key grid at :662/:1101; read-mode row nav is the gap |+| 5 | New (apps/erp/app/components/New.tsx) | 57 usages; already binds `n` via legacy hook; Button asChild wrapping Link |+| 6 | ModalDrawer* (@carbon/react) | 62 create/edit drawers; Submit lives in ModalDrawerFooter |+| 7 | DetailsTopbar/DetailSidebar | every detail page; per-link `shortcut` contract exists (legacy hook) |++### Navigation (ERP)++- Mount point for global provider/help overlay: `apps/erp/app/routes/x+/_layout.tsx` ~:473-487 (PrimaryNavigation + Topbar + Outlet + AgentRoot etc.).+- PrimaryNavigation.tsx — module rail; mounts SearchModal; useShortcutKeys for ⌘K at :236.+- 15 modules in `apps/erp/app/hooks/useModules.tsx` (accounting, documents, inventory, invoicing, parts, people, production, purchasing, quality, resources, sales, settings, shopFloor→MES, users, workflows). Order/visibility per-user (modulePreferences) — bind to stable `key`, never position.+- Topbar.tsx — Breadcrumbs, CompanySwitcher, AskDocs, CreateMenu (global "create anything" dropdown, permission-filtered), Notifications, AvatarMenu — no shortcuts today.+- Search.tsx (593 lines) exports `searchShortcut = { key: "K", modifiers: ["mod"] }`; aggregates use*Submodules hooks — already a de-facto "go to" navigator; extending palette beats a parallel g-prefix system.+- Gantt.tsx is the reference implementation for Button shortcut= usage (:1249-1287) + manual ShortcutKey legend :1314.++### MES++- AppSidebar.tsx — only nav: Operations, Assigned, Active, Recent, Jobs, Maintenance, Picking (+ dropdowns). No shortcuts.+- Controls.tsx :318-341 — PlayButton/PauseButton (giant round, type=submit in ValidatedForm) — most-pressed button in MES, no binding.+- QuantityModal (Finish), InspectionView Finish :1004, various modals.+- Touch-first, tablets, barcode scanners — bare single letters risky (wedge emits keystrokes); prefer modifier combos or enter/arrows.+- Only 4 existing MES shortcuts, all new-system (AssemblyView arrowright/enter, Step.tsx enter).++### Conflicts / design constraints++- Pagination binds bare ←/→ globally on table pages; Gantt binds all arrows — read-mode row nav via arrows collides. useShortcutKeys has no scope/priority concept (react-hotkeys-hook HotkeysProvider scopes = natural extension).+- Legacy useKeyboardShortcuts used in 14 ERP files (New, DetailsTopbar, DetailSidebar, Pagination, onboarding theme, 9 Explorers) — migration target; re-registers listeners every render; keyup/keydown quirk.+- Multiple ValidatedForm+Submit per page on detail pages (cards) — a blanket mod+s on Submit would register N handlers and click ALL of them; needs a focus-aware guard (submit the form containing focus; fall back to sole form; else no-op).+- Submit shortcut must set `enabledOnInputElements: true` (structured binding) or ⌘S won't fire while typing in a field — Button doesn't pass it by default.diff --git a/.ai/reviews/2026-09-07-keyboard-shortcuts-plan-review.md b/.ai/reviews/2026-09-07-keyboard-shortcuts-plan-review.mdnew file mode 100644index 0000000000..c145661a12--- /dev/null+++ b/.ai/reviews/2026-09-07-keyboard-shortcuts-plan-review.md@@ -0,0 +1,36 @@+# Thermo-nuclear review — app-wide keyboard shortcuts PLAN++Target: `.ai/plans/2026-09-07-keyboard-shortcuts-app-wide.md` + `.ai/specs/2026-09-07-keyboard-shortcuts.md` (docs only; no code yet). Findings reference plan tasks and real code lines.++## Must fix++1. **Submit guard's sole-submit fallback fires while typing in non-form editables** (Task 4 step 3). `AgentInput` is a raw `<textarea>` with no form (apps/erp/app/modules/agent/ui/AgentInput.tsx:39). Focus there → `active.closest("form")` is null → fallback fires the page's sole `<Submit>` on ⌘Enter. Users hitting ⌘Enter in the agent chat would submit an unrelated page form. Fix the rule: if `document.activeElement` is an editable element (input/textarea/select/contenteditable/.ProseMirror) **not inside this Submit's form → no-op**; the sole-submit fallback applies only when focus is on a non-editable element or body. Spec AC #2 must gain this case.+2. **`useShortcutKeyMap` plans two implementations** (Task 1 step 3: hotkeysEvent reconstruction *or* fallback plain listener). Don't ship a maybe. Pick the plain `document` keydown listener built on `parseShortcut` + shared guards — deterministic, testable, and the combo-matching logic stays in one file. Delete the react-hotkeys-hook attempt from the plan.+3. **`Record<combo, fn>` re-creates the legacy silent-overwrite bug structurally** (Tasks 1/7/8/9). The ⌘⇧P data bug is fixed, but a `Record` still silently drops a duplicate key at any future call site — the exact failure class we're deleting. Change the API to `useShortcutKeyMap(entries: Array<{ shortcut: ShortcutInput; action: (e) => void }>)` and make the hook `console.warn` in dev on duplicate *resolved* combos. Call sites build arrays, not records.+4. **Editable-target detection would exist in 3+ places** (`useShortcutKeyMap` listener, `useShortcutSequence`, Submit guard — and it already exists in `useKeyboardWedge` and the legacy hook). Centralization is this plan's own hard rule. Add one `isEditableTarget(target: EventTarget | null): boolean` util in `packages/react/src/utils/` (Task 1) and require every new hook/guard to use it.++## Risks / questions++5. **287 Submit buttons grow a ⌘↵ badge at once** (Task 4). Layout churn in 234 files nobody re-reviews; footers with tight `HStack`s may wrap. Mitigation: after Task 4, render-audit a few dense screens (quote line drawer, settings forms); keep `hideShortcutKey` as the escape valve. Accepted per spec (badge = discoverability), but eyes open.+6. **Topmost-dialog tie-break is load-bearing for ⌘Enter** — Drawer and Modal are both `z-50` (Drawer.tsx:23,52; Modal.tsx:35), so ConfirmDelete-over-drawer resolves by "later-mounted wins" (dialog.ts tie rule). Correct today; add a comment in Task 5 that this pairing depends on the tie-break, so a future z-index change doesn't silently flip the winner.+7. **Cross-component combo collisions still possible**: two *different* components on one page each binding the same combo (e.g. an Explorer's ⌘⇧L and a sidebar's ⌘⇧L) both fire — independent listeners, no Record to catch it. Low likelihood today (no known co-mounted pair), but the ShortcutRegistry could dev-warn on duplicate active combos for free — see improvement 10.+8. **Hidden-but-mounted Submits count in the registry** (Task 4): a mounted-but-invisible form (collapsed section) makes `count > 1` → fallback no-ops (fails safe), or a *sole* hidden Submit could be ⌘Enter-fired. Radix drawers unmount closed content so this should be rare; note it in the task and check one collapsed-card screen during verification.+9. **Multiple `StartStopForm`s on one MES screen** would all receive Space (Task 13). Verify the operation screen mounts exactly one; if a list view ever mounts several, scope the binding to the "active" one or drop it there. Escape hatch already exists for AssemblyView coexistence — extend it to same-screen multiplicity.+10. **⌥1–7 on mac is genuinely uncertain** (`event.key` = "¡" etc.). The plan's escape hatch (match `event.code`) is right — but with must-fix 2, build code-matching into the plain listener from the start instead of as a patch: `parseShortcut` output for digits can carry `code: "Digit1"` matching. Small now, ugly later.++## Suggested improvements++11. **Task 4 verify block has no behavioral test.** Add a jsdom test in `@carbon/form` for the guard truth table (focus-in-own-form fires; focus-in-other-form no-ops; focus-in-formless-editable no-ops; body+sole fires; body+two no-ops). This is the single riskiest logic in the plan and currently ships untested.+12. **Registry `description`/`group` on `useShortcutKeys` (Task 1) is speculative** — nothing in the plan passes `description` except overlay static entries, which don't go through the hook. YAGNI: ship the registry + static entries only; add per-hook registration when a real consumer needs it. Deletes an API nobody calls.+13. **Two app `ShortcutHelp.tsx` wrappers hand-build near-identical static lists** (Tasks 12–13). Acceptable duplication (data differs per app), but keep the row-building helper (`comboRow(shortcut, label)`) in the shared overlay file so the apps only declare data.+14. **`MODULE_GO_TO` letters `e`/`y`/`o`/`t`/`u`** are mnemonic-free. Fine to ship; surface the full table in the PR description for bikeshedding once, and the help overlay makes them discoverable.++## Docs freshness++15. `packages/react/AGENTS.md` — "Ask First: changing the public API of Button" is satisfied by this plan-approval flow; after execution the Key Patterns section should mention `shortcut`/`shortcutGuard`, and the hooks list loses `useKeyboardShortcuts`/`usePrettifyShortcut`. Task 14 step 4 greps rules for the deleted hook — extend the grep to `usePrettifyShortcut` and to `conventions-ui.md`'s Button props list (currently omits `shortcut`).+16. `.ai/specs/2026-09-07-keyboard-shortcuts.md` → move to `.ai/specs/implemented/` when done (per `.ai/specs` convention); plan already tracks divergences.+17. New lesson candidate after execution: "topmost-dialog tie-break + focus-aware submit guard" belongs in `.ai/lessons.md` if either bites during verification.++## Verdict++The architecture is sound and matches the centralization requirement; nothing here changes the shortcut map the user approved. Four must-fixes are all plan-text edits (guard rule, single implementation, collision-proof API, shared editable-target util) — cheap now, expensive after 234 files ship on top of them.diff --git a/.ai/specs/2026-09-07-keyboard-shortcuts.md b/.ai/specs/2026-09-07-keyboard-shortcuts.mdnew file mode 100644index 0000000000..cc36663ca5--- /dev/null+++ b/.ai/specs/2026-09-07-keyboard-shortcuts.md@@ -0,0 +1,195 @@+# App-wide Keyboard Shortcuts++**Status:** In review+**Date:** 2026-09-07+**Branch:** `feat/keyboard-shortcuts`+**Research:** `.ai/research/2026-09-07-keyboard-shortcuts.md`+**Proposal reviewed by user:** `.ai/scratch/keyboard-shortcuts-proposal.md`++## Summary++Carbon's Button now supports a `shortcut` prop (PR #1569: `useShortcutKeys` on react-hotkeys-hook, keycap badge, topmost-dialog guard), but only ~13 call sites use it. This spec rolls keyboard shortcuts out app-wide (ERP + MES): submit/confirm actions, list-page actions, detail-section navigation, module go-to, and a discoverability overlay — while consolidating the two competing shortcut systems into one.++`mod` = ⌘ on mac, Ctrl on Windows/Linux. All new user-facing copy is Lingui-translatable from day one.++## Goals++- Every shared submit/confirm surface has a keyboard shortcut with a visible badge.+- One shortcut system (`useShortcutKeys`); the legacy `useKeyboardShortcuts` hook is migrated and deleted.+- Navigation: module go-to (ERP), sidebar go-to (MES), existing detail-tab shortcuts preserved on the new system.+- A `?` help overlay lists the shortcuts active on the current page.+- No regressions to existing shortcuts (⌘K, ⌘B, ⌘L, `n`, ⌘⇧ tabs, Explorer add-line, MES clicker/wedge behavior).++## Non-goals++- Bare-letter global shortcuts beyond the existing `n` (collide with typing, scanners, Gantt's e/c/d).+- Arrow-key table row navigation (collides with pagination ←/→ and Gantt; revisit later with hotkey scopes).+- Changes to Escape behavior (already handled by dialogs/ActionBar/Table).+- Shortcuts for academy/docs/starter apps.+- User-customizable bindings.++## The shortcut map++### Submit & common actions++| Shortcut | Action | Surface | Mechanism |+|---|---|---|---|+| **⌘Enter** | Submit the form you're editing | All `<Submit>` buttons (287 ERP / 234 files, 10 MES), incl. all 62 ModalDrawer drawers | `packages/form` `Submit.tsx` passes `shortcut` to `Button` by default; focus-aware guard (below) |+| **⌘Enter** | Confirm | `ConfirmDelete` (181 sites) + `Confirm` modals | shortcut on the confirm `Button`; topmost-dialog guard makes it win over any page form |+| **n** | New record | 57 list pages (`New.tsx`) | migrate from legacy hook to `Button shortcut="n"` |++### Navigation++| Shortcut | Action | Surface | Mechanism |+|---|---|---|---|+| **⌘K** | Global search / go-to | ERP (existing) | unchanged |+| **⌘B** | Toggle sidebar | all apps (existing) | unchanged; add the missing input-field guard in `Sidebar.tsx` |+| **⌘L** | AI agent panel | ERP (existing) | unchanged |+| **⌘⇧<letter>** | Detail-page section tabs | DetailsTopbar/DetailSidebar (existing) | migrate to `useShortcutKeys`; fix the ⌘⇧P double-binding (Planning moves to **⌘⇧N**, Purchasing keeps ⌘⇧P) |+| **⌘⇧L/A/P** | Add line / attribute / parameter | 9 document Explorers (existing) | migrate as-is |+| **← / →** | Prev/next table page | list pages (existing) | migrate as-is |+| **g then <letter>** | Go to ERP module | app-wide (ERP) | new sequence helper (below) |+| **⌥1–⌥7** | Go to MES sidebar page | MES app-wide | `useShortcutKeys` on AppSidebar links |+| **?** (Shift+/) | Shortcut help overlay | ERP + MES app-wide | new registry + overlay (below) |++**g-prefix module letters** (bound to the stable module `key`, never position — order is per-user):+`g a` accounting · `g d` documents · `g i` inventory · `g v` invoicing · `g t` items (parts) · `g o` people · `g r` production · `g p` purchasing · `g q` quality · `g u` resources · `g s` sales · `g e` settings · `g y` users · `g w` workflows. (`shopFloor` is an external MES link — excluded.) Letters are tuneable at review; only reachable modules (permission-filtered via `useModules()`) are bound.++**MES ⌥ digits:** ⌥1 Operations · ⌥2 Assigned · ⌥3 Active · ⌥4 Recent · ⌥5 Jobs · ⌥6 Maintenance · ⌥7 Picking. (⌘digits are browser-reserved tab switching — not interceptable.)++### MES actions++| Shortcut | Action | Surface |+|---|---|---|+| **Space** | Start/Pause the operation | `JobOperation` `Controls.tsx` Play/Pause button via `Button shortcut="space"` |+| Enter / Space / ← → | Step actions (existing) | AssemblyView — unchanged |++Space guards: inert in inputs (hook default), inert under open dialogs (Button guard), and must not double-bind on any screen that renders AssemblyView's own Space handler (separate routes today — `operation.$operationId` vs `assembly.$operationId` — verified during implementation).++## Design++### 1. Submit shortcut in `@carbon/form` (`packages/form/src/components/Submit.tsx`)++- `Submit` gains `shortcut?: ShortcutInput | ShortcutInput[] | false` — **default `mod+enter`**, `false` opts out. Forwarded to `Button` with a structured first binding `{ key: "enter", modifiers: ["mod"], enabledOnInputElements: true }` so it fires while typing in a field (react-hotkeys-hook disables form-tag events by default; Button doesn't pass this through today).+- **Focus-aware guard** (composed with Button's dialog guard): detail pages render multiple `ValidatedForm` cards, each with its own `Submit`; a naive default registers N handlers and clicks all N. Rule:+ 1. If `document.activeElement` is inside a `<form>`: only the `Submit` belonging to that form fires.+ 2. If focus is in any other editable surface (a formless textarea like the agent chat input, `.ProseMirror`, cmdk listbox, an open menu — the shared `isEditableTarget` util): no-op — those own their keys (lesson `.ai/lessons.md:373`).+ 3. If focus is on a non-editable element or body: fire only if this is the **sole** enabled Submit currently registered; ambiguity means no-op, never "all".+ - Implemented via a module-level count of mounted active Submits in `@carbon/form`, so rule 3 is O(1); each Submit's guard closure checks it.+- `DefaultDisabledSubmit` inherits (it renders `Submit`).+- Badge: shown by default (⌘↵ keycap); `isLoading`/`isDisabled` already suppress/deactivate it. Sites whose Submit has a `rightIcon` keep working — badge wins over rightIcon per Button's existing contract.+- MES `Submit`s get this for free (same package).++### 2. Confirm modals++- `apps/erp/app/components/Modals/ConfirmDelete/ConfirmDelete.tsx` and `Modals/Confirm/Confirm.tsx`: add `shortcut="mod+enter"` to the confirm/destructive `Button`. The topmost-dialog guard ensures only the modal's button fires while it is open — page Submits go inert automatically. Bare Enter deliberately not used (destructive; scanner wedge flushes on Enter).++### 3. `?` help overlay (no runtime registry)++- `ShortcutHelpOverlay` component in `packages/react` (a Modal listing shortcut rows grouped by section), bound to `shift+/` via `useShortcutKeys`, mounted in `apps/erp/app/routes/x+/_layout.tsx` and `apps/mes/app/routes/x+/_layout.tsx`. Each app declares its entries, built exclusively from the central definition files — single-source by construction. Sequence entries (`["g","s"]`) render as chained keycaps. All copy via Lingui.+- A dynamic runtime registry (hooks self-registering descriptions) was reviewed out as speculative — nothing would consume it; revisit only if per-page dynamic listing becomes a real need.++### 4. `g` sequence helper++- New `useShortcutSequence(prefix: "g", map: Record<string, () => void>)` hook in `packages/react` (react-hotkeys-hook has no sequence support): keydown listener; on bare `g` (no modifiers, not in input/contenteditable, no open dialog, not while wedge buffer active) arms for 1.5s; next matching letter navigates; any other key or timeout disarms. Escape disarms. Unit-tested like `useShortcutKeys`.+- ERP: bound in `PrimaryNavigation.tsx` (which already has `useModules()` and mounts SearchModal) using module `key` → `navigate(to)`.++### 5. Legacy migration (delete `useKeyboardShortcuts`)++Migrate all 14 call sites to `useShortcutKeys` / `Button shortcut`:++- `New.tsx` → `Button shortcut="n"` (drops manual ref-click + `<Kbd>` tooltip; standard badge).+- `Pagination.tsx` → `useShortcutKeys` for ←/→ (IconButtons keep their Kbd hints or move to ShortcutKey).+- `DetailsTopbar.tsx` / `DetailSidebar.tsx` → per-link `useShortcutKeys`; link `shortcut` fields converted from legacy `"Command+Shift+d"` strings to `ShortcutInput` (`"mod+shift+d"`); tooltips render via `ShortcutKey`. Fix ⌘⇧P duplication across `usePartNavigation`, `useMaterialNavigation`, `useConsumableNavigation`, `useToolNavigation` (Planning → ⌘⇧N).+- 9 `*Explorer.tsx` files → `useShortcutKeys` with same combos; `<Kbd>{prettifyShortcut(...)}` hints → `ShortcutKey`.+- `onboarding+/theme.tsx` → `useShortcutKeys` (or `Button shortcut="enter"`).+- Then delete `packages/react/src/hooks/useKeyboardShortcuts.ts` (+ `usePrettifyShortcut` if no longer referenced) from the barrel.++Behavior notes: legacy fired single keys on key **up**; new fires on keydown — acceptable change. Legacy skipped inputs; new hook's defaults match.++### 6. Small fixes riding along++- `packages/react/src/Sidebar.tsx` ⌘B: route through `useShortcutKeys` (gains input guard + consistency) keeping the same combo.+- MES `Controls.tsx`: `PlayButton`/`PauseButton` get `shortcut="space"` (`ButtonWithTooltip` must forward the prop).+- MES `AppSidebar.tsx`: ⌥1–7 via `useShortcutKeys` per link, `ShortcutKey` hints in tooltips.++## Design decisions++| Decision | Choice | Rationale |+|---|---|---|+| Single source of truth | All combos live in central definition files — `packages/react/src/shortcuts.ts` (shared: save, confirm, new, help, sidebar), `apps/erp/app/shortcuts.ts` (detail tabs, explorers, pagination, module go-to, search), `apps/mes/app/shortcuts.ts` (nav, start/stop). Components import named constants; no inline combo strings. All logic (hooks, registry, guards, badge, overlay) lives in `packages/react` only. | **User requirement** — centralized, not scattered |+| Many-bindings-to-many-actions | New `useShortcutKeyMap(map)` helper in `packages/react` (one `useHotkeys` registration, dispatch by matched combo) replaces the legacy hook's `Record<combo, fn>` API for DetailsTopbar/DetailSidebar/Explorers/Pagination | dynamic link arrays can't call a hook per item |+| Button API addition | optional `shortcutGuard?: (e: KeyboardEvent) => boolean`, AND-composed with the dialog guard | lets Submit inject the focus-aware guard without duplicating Button's wiring |+| Plan approval gate | Execution starts only after the user approves the plan | **User requirement** (overrides ship-it auto-execute) |+| Submit combo | ⌘Enter only | **User decision** — leaves ⌘S to the browser; consistent "affirmative action" key |+| Confirm modal combo | ⌘Enter | **User decision** — deliberate two-key press for destructive actions; dialog guard resolves stacking with page forms |+| MES start/pause | Space | **User decision** — universal play/pause; guarded (inputs/dialogs) |+| Module go-to | `g` then letter | **User decision** — Linear/GitHub pattern; scales to 15 modules; small sequence helper built once |+| MES nav | ⌥1–7 | **User decision** — ⌘digits are browser-reserved |+| Legacy hook | migrate all 14 sites, delete | **User decision** — one listener system; fixes ⌘⇧P dup, per-render re-registration |+| Help overlay | `?` (shift+/), registry-based | **User decision** — standard discoverability pattern |+| ⌘⇧P duplication fix | Planning → ⌘⇧N | free letter, "plaNning"; Purchasing keeps P (matches Suppliers/Customers pages) |+| Multiple Submits per page | focus-aware guard + sole-submit fallback | prevents N forms submitting at once; the actual bug a naive default would ship |+| Shortcut display | Button's built-in `ShortcutKey` badge | already shipped; consistent; replaces ad-hoc `<Kbd>` hints as sites migrate |+| Enter (bare) for submit | rejected | wedge flushes scans on Enter; MES clicker owns Enter; react-aria fields swallow it |+| Scopes/priority system (HotkeysProvider) | not now | YAGNI — dialog guard + focus guard + no-arrow-rowNav avoids the need; revisit if collisions appear |++## Acceptance criteria++1. In any ERP create/edit drawer (e.g. New Customer), typing in a field and pressing ⌘Enter submits the form; the Submit button shows a ⌘↵ badge.+2. On a detail page with multiple form cards (e.g. Part → Details), ⌘Enter submits only the card containing focus; with focus on the page body and multiple forms present, nothing happens; with focus in a formless editable (the agent chat textarea), nothing happens.+3. With a ConfirmDelete modal open above an edit form, ⌘Enter triggers only the delete; Escape still closes.+4. `n` on a list page opens the New form exactly as before, badge rendered by Button, and no legacy listener remains (`useKeyboardShortcuts` file deleted, grep returns nothing).+5. On a Part detail page, ⌘⇧P goes to Purchasing and ⌘⇧N goes to Planning (both reachable — the old silent overwrite is gone).+6. `g` then `s` from any ERP page navigates to Sales; `g` while typing in an input does nothing; `g` with a modal open does nothing.+7. `?` opens the help overlay listing (at minimum) the global shortcuts and any page-registered ones, fully translated; Escape closes it.+8. MES: Space toggles Start/Pause on the operation screen; Space inside a quantity input does not; ⌥3 navigates to Active.+9. Existing behavior unchanged: ⌘K search, ⌘B sidebar, ⌘L agent, table pagination ←/→, Gantt e/c/d/arrows, AssemblyView Enter/Space/←/→, barcode wedge navigation.+10. `pnpm exec turbo run typecheck --filter=@carbon/react --filter=@carbon/form --filter=erp --filter=mes` passes; `useShortcutKeys` unit tests extended for sequence helper + registry.++## Phases (≤5, detailed in the plan)++1. **Infrastructure** (`packages/react`, `packages/form`): registry + `description`, sequence hook, Submit `shortcut` prop + focus-aware guard, Sidebar ⌘B guard, tests.+2. **Submit & confirm rollout**: Submit default ⌘Enter (ERP+MES), ConfirmDelete/Confirm ⌘Enter, audit odd Submits (rightIcon, portal cases).+3. **Legacy migration**: New, Pagination, DetailsTopbar/DetailSidebar (+⌘⇧P fix), 9 Explorers, onboarding theme; delete legacy hook.+4. **ERP navigation & discoverability**: g-prefix module go-to, `?` help overlay + static entries, i18n.+5. **MES**: Space start/pause, ⌥1–7 sidebar nav, MES help overlay; final sweep (translations, self-review, browser smoke test).++## Autonomous decisions (execution, 2026-09-07)++User enabled autonomous execution. Calls made without asking, worth review first:++1. **Test approach changed (review-worthy):** the repo has no DOM test environment (vitest env `node`, no jsdom) — instead of adding a jsdom dev dependency, the risky logic was extracted into pure, node-testable cores: `shouldSubmitOnShortcut` (Submit guard truth table, `packages/form/src/internal/submitShortcutRegistry.ts`), `sequenceStep` (g-prefix state machine), `matchesShortcut` (combo matcher). 76 tests green.+2. **Detail-tab constants corrected to real semantics (review-worthy):** the spec's guessed names (quoting/manufacturing/terms/documents) didn't match the code — actual tabs are Quality=⌘⇧Q, Sales(items)=⌘⇧X, Payment=⌘⇧P, Tax=⌘⇧T, Shipping=⌘⇧S, Processes=⌘⇧R, Activity=⌘⇧A. All combos unchanged from what users had (except the Planning fix ⌘⇧P→⌘⇧N as spec'd).+3. Duplicate-combo warning fires in all environments (packages/react has no `process.env` typing; a duplicate is a bug worth surfacing in prod consoles too).+4. `matchesShortcut` gained an `event.code` fallback for named punctuation (slash/period/comma/minus/equal) so `?` (shift+/) matches for the help overlay.+5. `ONBOARDING_SHORTCUTS.continue` and `MODULE_GO_TO_PREFIX` constants added (centralization consistency); the Settings module is included in g-go-to via `useSettingsModule()`.+6. `New.tsx` tooltip removed — the inline keycap badge replaces it (Gantt precedent).+7. Pagination's condensed IconButtons now receive the shortcut refs — the legacy binding only clicked the non-condensed buttons (small behavior improvement).+8. MES `ButtonWithTooltip`/`PlayButton`/`PauseButton` converted to `forwardRef` (needed for the Space ref-click).+9. `usePrettifyShortcut` deleted along with the legacy hook (unreferenced after migration — the plan made this conditional).+10. MES help overlay lists AssemblyView's Enter/Space/←/→ as display-only rows; the bindings stay owned by AssemblyView.++## Open questions (resolved)++- [x] Submit shortcut — **Answer:** ⌘Enter only (user; ⌘S rejected).+- [x] Confirm/delete modals — **Answer:** ⌘Enter (user).+- [x] MES start/pause — **Answer:** Space (user).+- [x] Optional scope — **Answer:** all four in: legacy migration, `?` overlay, MES nav keys, ERP module go-to (user).+- [x] ERP module go-to mechanism — **Answer:** `g` then letter sequences (user; ⌘digits browser-reserved).+- [x] MES nav keys — **Answer:** ⌥1–7 (user; replaces reserved ⌘1–7).++## Changelog++- 2026-09-07: Spec written after research (3 codebase surveys) and user interview; all questions resolved.+- 2026-09-07: Thermo-nuclear plan review (`.ai/reviews/2026-09-07-keyboard-shortcuts-plan-review.md`) folded in: refined Submit guard (formless editables), entries-array `useShortcutKeyMap` with dev duplicate warning, shared `isEditableTarget`, runtime registry cut as speculative, alt+digit `event.code` matching built in.++## Design revision (2026-09-07, user review round 1)++User review found the first pass mechanically applied ⌘Enter + visible badges everywhere with no interaction design. Reworked under these principles (now codified in `.claude/rules/conventions-ui.md` § Keyboard shortcuts):++- **Enter vs ⌘Enter is a per-screen design decision**: Enter for one-obvious-action screens (single input → native form submit; choice screens → select-and-continue); ⌘Enter only for real multi-field forms where Enter has other meanings.+- **Badge visibility ≠ binding**: login (erp+mes), OTP screens (mfa/unlock/SessionLockOverlay ×2, auto-submit at 6 digits) and the 10 single-text-input dialogs (`*TypeForm`/`*StatusForm`/`ScrapReason`/`NoQuoteReason`/`StorageType`/`ChangeNoticeType`/`ReviewersList`) keep the silent binding but drop the ⌘↵ badge (`hideShortcutKey`). Textarea/editor forms (Suggestion, RichText notes, UnscrapModal) keep the badge — Enter means newline there, so ⌘Enter is the legitimate advertised submit.+- **Choice screens got real semantics + focus management**: onboarding theme mode + swatches converted from N plain Buttons to Radix radio groups via new `RadioGroupButton` (packages/react/src/Radio.tsx — barrel export extended, "ask first" waived under autonomous refactor mandate); `ChoiceCardGroup` gained an `autoFocus` prop (focus selected card on mount); industry sub-screens A/B use it; both Next buttons + theme Next + import "Create company" carry `ONBOARDING_SHORTCUTS.continue` (Enter, ↵ badge) — replacing theme.tsx's hand-wired invisible `useShortcutKeyMap` Enter. Radix radios don't activate on Enter, which is what leaves Enter free to mean "continue". Initial focus added: login email, OTP inputs (InputOTP gained `autoFocus` prop), magic-link CTA, invite Join CTA; import-upload dropzone got a visible focus ring.+- **react-hotkeys-hook is the only matcher**: `useShortcutKeyMap` no longer hand-rolls a document listener + `matchesShortcut` — it delegates to `useHotkeys` (v4.5.1 matches `event.key` AND mapped `event.code`, so ⌥1→"¡", ⌥letter, shift+/ all work natively), dispatching entries by `canonicalCombo` (mirrors the library's internal `mapKey`; pinned by tests). `matchesShortcut` deleted (autonomous decision #1/#4 partially superseded). `useShortcutSequence` stays hand-rolled — the library has no sequence support (documented exception).+- Left as-is deliberately: plan.tsx (multiple independent CTAs, no single obvious action), Gantt's pre-existing inline shortcut literals + raw `useHotkeys` (pre-dates this work), MES AssemblyView/Step "enter" literals (pre-existing bindings), verify.tsx's no-submit-button form quirk.diff --git a/.claude/rules/conventions-ui.md b/.claude/rules/conventions-ui.mdindex bedd493130..bbbb0541e3 100644--- a/.claude/rules/conventions-ui.md+++ b/.claude/rules/conventions-ui.md@@ -40,7 +40,48 @@ variant rather than styling a bare element.`destructive` · `ghost` · `outline` · `link`- **size**: `sm` · `md` (default) · `lg`- **props**: `isDisabled`, `isLoading`, `isIcon`, `isRound`, `leftIcon`,- `rightIcon`, `asChild`+ `rightIcon`, `asChild`, `shortcut`, `hideShortcutKey`, `shortcutGuard`++### Keyboard shortcuts++`shortcut` binds a hotkey that ref-clicks the button and renders a keycap badge+(`ShortcutKey`); it is inert while disabled/loading and while a dialog the+button isn't inside is open. `shortcutGuard` AND-composes an extra guard.+**Every combo is a named constant** — shared ones in+`packages/react/src/shortcuts.ts` (`SHORTCUTS`), app ones in+`apps/erp/app/shortcuts.ts` / `apps/mes/app/shortcuts.ts`. Never write a combo+string literal at a call site. Many-bindings-to-many-actions use+`useShortcutKeyMap(entries)` (dev-warns on duplicate combos); two-key sequences+(`g` then a letter) use `useShortcutSequence`. The `?` overlay+(`ShortcutHelpOverlay`) lists shortcuts; each app's `ShortcutHelp.tsx` declares+its entries from the central files. `Submit` (`@carbon/form`) defaults to the+`SHORTCUTS.save` binding (⌘/Ctrl+Enter) with a focus-aware guard; pass+`shortcut={false}` to opt out of the binding or `hideShortcutKey` to keep it+silent. The legacy `useKeyboardShortcuts` / `usePrettifyShortcut` hooks are+deleted.++All matching goes through **react-hotkeys-hook** (`useShortcutKeys` and+`useShortcutKeyMap` both delegate to `useHotkeys`) — never hand-roll a+document keydown listener; the library already handles typing-in-input+suppression and physical-key (`event.code`) matching. `useShortcutSequence`+is the one hand-rolled exception (the library has no sequence support).++**Interaction design rules** (apply per screen, don't bind mechanically):++- **Enter** is the shortcut when there is one obvious action: a single input+ (native form submit already handles it), a choice screen, "select and+ continue". **⌘/Ctrl+Enter** is for real forms — multiple fields, selects,+ editors — where Enter has other meanings and submission should be deliberate.+- **Badge visibility is a design decision.** Don't advertise a shortcut on a+ trivial screen (login email, OTP screens, single-input dialogs): the binding+ can stay, the badge goes (`hideShortcutKey`). Multi-field forms keep the+ ⌘↵ badge.+- **Choice screens are radio groups**: one tab stop, arrow keys move AND+ select, Enter confirms and continues (Radix radios don't activate on Enter,+ which leaves it free for the continue button's `shortcut`). Use+ `ChoiceCardGroup` (cards, `autoFocus` prop) or `RadioGroupButton`+ (button-styled options); give the screen initial focus on the selected+ option.```typescript<Button variant="primary" leftIcon={<LuPlus />}>Save</Button>diff --git a/apps/erp/app/components/Layout/Navigation/DetailSidebar.tsx b/apps/erp/app/components/Layout/Navigation/DetailSidebar.tsxindex f6d5459b41..ba5999e28f 100644--- a/apps/erp/app/components/Layout/Navigation/DetailSidebar.tsx+++ b/apps/erp/app/components/Layout/Navigation/DetailSidebar.tsx@@ -1,15 +1,17 @@+import type { ShortcutInput } from "@carbon/react";import {Button,Count,HStack,+ ShortcutKey,Tooltip,TooltipContent,TooltipTrigger,- useKeyboardShortcuts,- usePrettifyShortcut,+ useShortcutKeyMap,VStack} from "@carbon/react";import type { ReactNode } from "react";+import { useMemo } from "react";import { Link, useNavigate } from "react-router";import { useOptimisticLocation } from "~/hooks";@@ -19,22 +21,24 @@ type DetailSidebarProps = {to: string;icon?: ReactNode;count?: number;- shortcut?: string;+ shortcut?: ShortcutInput;}[];};const DetailSidebar = ({ links }: DetailSidebarProps) => {const navigate = useNavigate();const location = useOptimisticLocation();- const prettifyShortcut = usePrettifyShortcut();- useKeyboardShortcuts(- links.reduce<Record<string, () => void>>((acc, link) => {- if (link.shortcut) {- acc[link.shortcut] = () => navigate(link.to);- }- return acc;- }, {})+ useShortcutKeyMap(+ useMemo(+ () =>+ links.flatMap((link) =>+ link.shortcut+ ? [{ shortcut: link.shortcut, action: () => navigate(link.to) }]+ : []+ ),+ [links, navigate]+ ));return (@@ -68,7 +72,9 @@ const DetailSidebar = ({ links }: DetailSidebarProps) => {</TooltipTrigger>{route.shortcut && (<TooltipContent side="right">- <HStack>{prettifyShortcut(route.shortcut)}</HStack>+ <HStack>+ <ShortcutKey shortcut={route.shortcut} variant="small" />+ </HStack></TooltipContent>)}</Tooltip>diff --git a/apps/erp/app/components/Layout/Navigation/DetailsTopbar.tsx b/apps/erp/app/components/Layout/Navigation/DetailsTopbar.tsxindex 561ed940e4..8efb2ce41f 100644--- a/apps/erp/app/components/Layout/Navigation/DetailsTopbar.tsx+++ b/apps/erp/app/components/Layout/Navigation/DetailsTopbar.tsx@@ -1,13 +1,15 @@+import type { ShortcutInput } from "@carbon/react";import {Count,cn,HStack,+ ShortcutKey,Tooltip,TooltipContent,TooltipTrigger,- useKeyboardShortcuts,- usePrettifyShortcut+ useShortcutKeyMap} from "@carbon/react";+import { useMemo } from "react";import type { IconType } from "react-icons";import { Link, useNavigate } from "react-router";import { useOptimisticLocation, useUrlParams } from "~/hooks";@@ -18,7 +20,7 @@ type DetailTopbarProps = {to: string;icon?: IconType;count?: number;- shortcut?: string;+ shortcut?: ShortcutInput;isActive?: (pathname: string) => boolean;}[];@@ -33,20 +35,27 @@ const DetailTopbar = ({const navigate = useNavigate();const location = useOptimisticLocation();const [params] = useUrlParams();- const prettifyShortcut = usePrettifyShortcut();- useKeyboardShortcuts(- links.reduce<Record<string, () => void>>((acc, link) => {- if (link.shortcut) {- acc[link.shortcut] = () => {- const url = preserveParams- ? `${link.to}?${params.toString()}`- : link.to;- navigate(url);- };- }- return acc;- }, {})+ useShortcutKeyMap(+ useMemo(+ () =>+ links.flatMap((link) =>+ link.shortcut+ ? [+ {+ shortcut: link.shortcut,+ action: () => {+ const url = preserveParams+ ? `${link.to}?${params.toString()}`+ : link.to;+ navigate(url);+ }+ }+ ]+ : []+ ),+ [links, navigate, params, preserveParams]+ ));return (@@ -80,7 +89,9 @@ const DetailTopbar = ({</TooltipTrigger>{route.shortcut && (<TooltipContent side="bottom">- <HStack>{prettifyShortcut(route.shortcut)}</HStack>+ <HStack>+ <ShortcutKey shortcut={route.shortcut} variant="small" />+ </HStack></TooltipContent>)}</Tooltip>diff --git a/apps/erp/app/components/Layout/Navigation/PrimaryNavigation.tsx b/apps/erp/app/components/Layout/Navigation/PrimaryNavigation.tsxindex 4d3644e486..971dd817a2 100644--- a/apps/erp/app/components/Layout/Navigation/PrimaryNavigation.tsx+++ b/apps/erp/app/components/Layout/Navigation/PrimaryNavigation.tsx@@ -3,6 +3,7 @@ import {ShortcutKey,useDisclosure,useShortcutKeys,+ useShortcutSequence,VStack} from "@carbon/react";import {@@ -19,9 +20,9 @@ import {} from "@dnd-kit/sortable";import { Trans, useLingui } from "@lingui/react/macro";import type { AnchorHTMLAttributes } from "react";-import { forwardRef, memo, useEffect } from "react";+import { forwardRef, memo, useEffect, useMemo } from "react";import { LuSearch, LuSettings2 } from "react-icons/lu";-import { Link, useMatches } from "react-router";+import { Link, useMatches, useNavigate } from "react-router";import {useModules,useOptimisticLocation,@@ -29,9 +30,10 @@ import {useSettingsModule} from "~/hooks";import { useImplementationNavItem } from "~/hooks/useImplementationNavItem";+import { MODULE_GO_TO, MODULE_GO_TO_PREFIX, searchShortcut } from "~/shortcuts";import { useUIStore } from "~/stores/ui";import type { Authenticated, NavItem } from "~/types";-import { SearchModal, searchShortcut } from "../Topbar/Search";+import { SearchModal } from "../Topbar/Search";import { HiddenModulesPopover } from "./HiddenModulesPopover";import { NavigationEditBar } from "./NavigationEditBar";import { SortableNavItem } from "./SortableNavItem";@@ -57,6 +59,20 @@ const PrimaryNavigation = () => {const editMode = useNavigationEditMode();+ // g-then-letter module go-to, bound to the stable module `key` (order and+ // visibility are per-user, so positions would be unstable).+ const navigate = useNavigate();+ const goToModules = useMemo(() => {+ const map: Record<string, () => void> = {};+ const targets = settingsModule ? [...links, settingsModule] : links;+ for (const module of targets) {+ const letter = MODULE_GO_TO[module.key];+ if (letter) map[letter] = () => navigate(module.to);+ }+ return map;+ }, [links, settingsModule, navigate]);+ useShortcutSequence({ prefix: MODULE_GO_TO_PREFIX, map: goToModules });+// The rail expands on hover. The search modal (a Radix dialog) toggles// document.body pointer-events, and restoring them on close fires a phantom// `mouseenter` on the rail with no paired `mouseleave` — leaving it stuckdiff --git a/apps/erp/app/components/Layout/Topbar/Search.tsx b/apps/erp/app/components/Layout/Topbar/Search.tsxindex fedd8a943f..a7ebc9eb7b 100644--- a/apps/erp/app/components/Layout/Topbar/Search.tsx+++ b/apps/erp/app/components/Layout/Topbar/Search.tsx@@ -1,4 +1,3 @@-import type { ShortcutDefinition } from "@carbon/react";import {Command,CommandGroup,@@ -67,11 +66,6 @@ type RecentSearch = Route & {description?: string;};-export const searchShortcut: ShortcutDefinition = {- key: "K",- modifiers: ["mod"]-};-export const SearchModal = () => {const { t } = useLingui();const navigate = useNavigate();diff --git a/apps/erp/app/components/Modals/Confirm/Confirm.tsx b/apps/erp/app/components/Modals/Confirm/Confirm.tsxindex ea3b477484..bec553f858 100644--- a/apps/erp/app/components/Modals/Confirm/Confirm.tsx+++ b/apps/erp/app/components/Modals/Confirm/Confirm.tsx@@ -7,6 +7,7 @@ import {ModalHeader,ModalOverlay,ModalTitle,+ SHORTCUTS,toast} from "@carbon/react";import type { ComponentProps, ReactNode } from "react";@@ -85,11 +86,14 @@ const Confirm = ({onSubmit={() => (submitted.current = true)}>{children}+ {/* Same z-50 tie-break dependency as ConfirmDelete: this modal+ wins over an open drawer only because it mounts later. */}<Buttonvariant={confirmVariant}isLoading={fetcher.state !== "idle"}isDisabled={fetcher.state !== "idle"}type="submit"+ shortcut={SHORTCUTS.confirm}>{confirmText}</Button>diff --git a/apps/erp/app/components/Modals/ConfirmDelete/ConfirmDelete.tsx b/apps/erp/app/components/Modals/ConfirmDelete/ConfirmDelete.tsxindex 969198fcc0..91c9af7864 100644--- a/apps/erp/app/components/Modals/ConfirmDelete/ConfirmDelete.tsx+++ b/apps/erp/app/components/Modals/ConfirmDelete/ConfirmDelete.tsx@@ -6,7 +6,8 @@ import {ModalFooter,ModalHeader,ModalOverlay,- ModalTitle+ ModalTitle,+ SHORTCUTS} from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import { useEffect, useRef } from "react";@@ -66,11 +67,17 @@ const ConfirmDelete = ({action={action}onSubmit={() => (submitted.current = true)}>+ {/* Drawer and Modal are both z-50 (Drawer.tsx:23, Modal.tsx:35), so+ when this modal stacks over a drawer form the topmost-dialog+ guard resolves by "later-mounted wins" (utils/dialog.ts). If+ either z-index ever changes, re-verify ⌘Enter targets this+ modal, not the drawer's Submit. */}<Buttonvariant="destructive"isLoading={fetcher.state !== "idle"}isDisabled={fetcher.state !== "idle"}type="submit"+ shortcut={SHORTCUTS.confirm}>{deleteText}</Button>diff --git a/apps/erp/app/components/New.tsx b/apps/erp/app/components/New.tsxindex 1d8b36b371..3d280ca51e 100644--- a/apps/erp/app/components/New.tsx+++ b/apps/erp/app/components/New.tsx@@ -1,17 +1,25 @@import type { ButtonProps } from "@carbon/react";-import {- Button,- HStack,- Kbd,- Tooltip,- TooltipContent,- TooltipTrigger,- useKeyboardShortcuts-} from "@carbon/react";+import { Button } from "@carbon/react";import { useLingui } from "@lingui/react/macro";-import { useRef } from "react";+import { useEffect, useSyncExternalStore } from "react";import { LuCirclePlus } from "react-icons/lu";import { Link } from "react-router";+import { SHORTCUTS } from "~/shortcuts";++// `n` means "the New action" only while a screen shows exactly one New+// button. With two visible Add buttons (e.g. Chart of Accounts renders+// Add Group AND Add Account) one key cannot name both, so every instance+// drops the binding and the badge instead of racing for it.+let mountedCount = 0;+const listeners = new Set<() => void>();+const subscribe = (listener: () => void) => {+ listeners.add(listener);+ return () => {+ listeners.delete(listener);+ };+};+const getCount = () => mountedCount;+const getServerCount = () => 1;type NewProps = {label?: string;@@ -21,35 +29,34 @@ type NewProps = {const New = ({ label, to, variant = "primary" }: NewProps) => {const { i18n, t } = useLingui();- const buttonRef = useRef<HTMLButtonElement>(null);const translatedLabel = label ? i18n._(label) : undefined;- useKeyboardShortcuts({- n: (event: KeyboardEvent) => {- event.stopPropagation();- buttonRef.current?.click();- }- });++ useEffect(() => {+ mountedCount++;+ listeners.forEach((listener) => {+ listener();+ });+ return () => {+ mountedCount--;+ listeners.forEach((listener) => {+ listener();+ });+ };+ }, []);+ const isSoleNew =+ useSyncExternalStore(subscribe, getCount, getServerCount) <= 1;return (- <Tooltip>- <TooltipTrigger asChild>- <Button- asChild- leftIcon={<LuCirclePlus />}- variant={variant}- ref={buttonRef}- >- <Link to={to}>- {translatedLabel ? `${t`Add`} ${translatedLabel}` : t`Add`}- </Link>- </Button>- </TooltipTrigger>- <TooltipContent>- <HStack>- <Kbd>N</Kbd>- </HStack>- </TooltipContent>- </Tooltip>+ <Button+ asChild+ leftIcon={<LuCirclePlus />}+ variant={variant}+ shortcut={isSoleNew ? SHORTCUTS.newRecord : undefined}+ >+ <Link to={to}>+ {translatedLabel ? `${t`Add`} ${translatedLabel}` : t`Add`}+ </Link>+ </Button>);};diff --git a/apps/erp/app/components/SessionLockOverlay.tsx b/apps/erp/app/components/SessionLockOverlay.tsxindex 9d4ec2608a..6aebbbc340 100644--- a/apps/erp/app/components/SessionLockOverlay.tsx+++ b/apps/erp/app/components/SessionLockOverlay.tsx@@ -62,7 +62,7 @@ function UnlockCodeField({ result }: { result?: Result }) {if (result?.success === false) setCode("");}, [result, setCode]);- return <InputOTP name="code" label="" />;+ return <InputOTP name="code" label="" autoFocus />;}export default function SessionLockOverlay({@@ -192,6 +192,7 @@ export default function SessionLockOverlay({<UnlockCodeField result={fetcher.data} /><Submit+ hideShortcutKeysize="lg"className="w-full"withBlocker={false}diff --git a/apps/erp/app/components/ShortcutHelp.tsx b/apps/erp/app/components/ShortcutHelp.tsxnew file mode 100644index 0000000000..0e680d1694--- /dev/null+++ b/apps/erp/app/components/ShortcutHelp.tsx@@ -0,0 +1,105 @@+import type { ShortcutHelpEntry } from "@carbon/react";+import { ShortcutHelpOverlay } from "@carbon/react";+import { useLingui } from "@lingui/react/macro";+import { useMemo } from "react";+import { useModules, useSettingsModule } from "~/hooks";+import {+ DETAIL_TAB_SHORTCUTS,+ EXPLORER_SHORTCUTS,+ MODULE_GO_TO,+ MODULE_GO_TO_PREFIX,+ PAGINATION_SHORTCUTS,+ SHORTCUTS,+ searchShortcut+} from "~/shortcuts";++/**+ * ERP `?` help overlay. Every entry is built from the central shortcut+ * definitions in ~/shortcuts — never write a combo literal here.+ */+const ShortcutHelp = () => {+ const { t } = useLingui();+ const modules = useModules();+ const settingsModule = useSettingsModule();++ const entries = useMemo<ShortcutHelpEntry[]>(() => {+ const general = t`General`;+ const navigation = t`Navigation`;+ const goTo = t`Go to module`;++ const moduleEntries: ShortcutHelpEntry[] = (+ settingsModule ? [...modules, settingsModule] : modules+ ).flatMap((module) => {+ const letter = MODULE_GO_TO[module.key];+ return letter+ ? [+ {+ shortcut: [MODULE_GO_TO_PREFIX, letter],+ description: module.name,+ group: goTo+ }+ ]+ : [];+ });++ return [+ { shortcut: searchShortcut, description: t`Search`, group: general },+ {+ shortcut: SHORTCUTS.save,+ description: t`Save the form you're editing`,+ group: general+ },+ {+ shortcut: SHORTCUTS.confirm,+ description: t`Confirm a dialog`,+ group: general+ },+ {+ shortcut: SHORTCUTS.newRecord,+ description: t`New record (on list pages)`,+ group: general+ },+ {+ shortcut: SHORTCUTS.sidebarToggle,+ description: t`Toggle the sidebar`,+ group: general+ },+ {+ shortcut: SHORTCUTS.help,+ description: t`Show this overlay`,+ group: general+ },+ {+ shortcut: PAGINATION_SHORTCUTS.previous,+ description: t`Previous page (in tables)`,+ group: navigation+ },+ {+ shortcut: PAGINATION_SHORTCUTS.next,+ description: t`Next page (in tables)`,+ group: navigation+ },+ {+ shortcut: DETAIL_TAB_SHORTCUTS.details,+ description: t`Jump to a section on detail pages (⇧⌘ + the section's letter)`,+ group: navigation+ },+ {+ shortcut: EXPLORER_SHORTCUTS.addLine,+ description: t`Add a line (in document explorers)`,+ group: navigation+ },+ ...moduleEntries+ ];+ }, [t, modules, settingsModule]);++ return (+ <ShortcutHelpOverlay+ title={t`Keyboard shortcuts`}+ entries={entries}+ emptyLabel={t`No shortcuts available on this page.`}+ />+ );+};++export default ShortcutHelp;diff --git a/apps/erp/app/components/Table/components/Pagination/Pagination.tsx b/apps/erp/app/components/Table/components/Pagination/Pagination.tsxindex ff2812b273..bc43efe474 100644--- a/apps/erp/app/components/Table/components/Pagination/Pagination.tsx+++ b/apps/erp/app/components/Table/components/Pagination/Pagination.tsx@@ -9,15 +9,16 @@ import {DropdownMenuTrigger,HStack,IconButton,+ ShortcutKey,Tooltip,TooltipContent,TooltipTrigger,- useKeyboardShortcuts,- usePrettifyShortcut+ useShortcutKeyMap} from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";-import { useCallback, useRef } from "react";+import { useCallback, useMemo, useRef } from "react";import { BsChevronLeft, BsChevronRight } from "react-icons/bs";+import { PAGINATION_SHORTCUTS } from "~/shortcuts";import { PAGE_SIZES } from "~/utils/pagination";export type PaginationProps = {@@ -92,7 +93,6 @@ export const PaginationButtons = ({const { t } = useLingui();const nextButtonRef = useRef<HTMLButtonElement>(null);const previousButtonRef = useRef<HTMLButtonElement>(null);- const prettifyShortcut = usePrettifyShortcut();const scrollToTop = useCallback(() => {document@@ -110,16 +110,21 @@ export const PaginationButtons = ({scrollToTop();}, [nextPage, scrollToTop]);- useKeyboardShortcuts({- ArrowRight: (event: KeyboardEvent) => {- event.stopPropagation();- nextButtonRef.current?.click();- },- ArrowLeft: (event: KeyboardEvent) => {- event.stopPropagation();- previousButtonRef.current?.click();- }- });+ useShortcutKeyMap(+ useMemo(+ () => [+ {+ shortcut: PAGINATION_SHORTCUTS.next,+ action: () => nextButtonRef.current?.click()+ },+ {+ shortcut: PAGINATION_SHORTCUTS.previous,+ action: () => previousButtonRef.current?.click()+ }+ ],+ []+ )+ );return (<>@@ -128,6 +133,7 @@ export const PaginationButtons = ({<Tooltip><TooltipTrigger asChild><IconButton+ ref={previousButtonRef}aria-label={t`Previous`}icon={<BsChevronLeft />}isDisabled={!canPreviousPage}@@ -136,12 +142,16 @@ export const PaginationButtons = ({/></TooltipTrigger><TooltipContent>- <HStack>{prettifyShortcut("ArrowLeft")}</HStack>+ <ShortcutKey+ shortcut={PAGINATION_SHORTCUTS.previous}+ variant="small"+ /></TooltipContent></Tooltip><Tooltip><TooltipTrigger asChild><IconButton+ ref={nextButtonRef}aria-label={t`Next`}icon={<BsChevronRight />}isDisabled={!canNextPage}@@ -150,7 +160,10 @@ export const PaginationButtons = ({/></TooltipTrigger><TooltipContent>- <HStack>{prettifyShortcut("ArrowRight")}</HStack>+ <ShortcutKey+ shortcut={PAGINATION_SHORTCUTS.next}+ variant="small"+ /></TooltipContent></Tooltip></>@@ -173,7 +186,10 @@ export const PaginationButtons = ({</Button></TooltipTrigger><TooltipContent>- <HStack>{prettifyShortcut("ArrowLeft")}</HStack>+ <ShortcutKey+ shortcut={PAGINATION_SHORTCUTS.previous}+ variant="small"+ /></TooltipContent></Tooltip><Tooltip>@@ -189,7 +205,10 @@ export const PaginationButtons = ({</Button></TooltipTrigger><TooltipContent>- <HStack>{prettifyShortcut("ArrowRight")}</HStack>+ <ShortcutKey+ shortcut={PAGINATION_SHORTCUTS.next}+ variant="small"+ /></TooltipContent></Tooltip></>diff --git a/apps/erp/app/modules/inventory/ui/Inventory/useInventoryNavigation.tsx b/apps/erp/app/modules/inventory/ui/Inventory/useInventoryNavigation.tsxindex f4f9892923..5143de4b4a 100644--- a/apps/erp/app/modules/inventory/ui/Inventory/useInventoryNavigation.tsx+++ b/apps/erp/app/modules/inventory/ui/Inventory/useInventoryNavigation.tsx@@ -2,6 +2,7 @@ import { useLingui } from "@lingui/react/macro";import { LuChartBar, LuFileText } from "react-icons/lu";import { useParams } from "react-router";import { usePermissions } from "~/hooks";+import { DETAIL_TAB_SHORTCUTS } from "~/shortcuts";import { path } from "~/utils/path";export function useInventoryNavigation() {@@ -16,14 +17,14 @@ export function useInventoryNavigation() {to: path.to.inventoryItem(itemId),role: ["employee"],icon: LuFileText,- shortcut: "Command+Shift+d"+ shortcut: DETAIL_TAB_SHORTCUTS.details},{name: t`Activity`,to: path.to.inventoryItemActivity(itemId),role: ["employee"],icon: LuChartBar,- shortcut: "Command+Shift+a"+ shortcut: DETAIL_TAB_SHORTCUTS.activity}];}diff --git a/apps/erp/app/modules/inventory/ui/StorageTypes/StorageTypeForm.tsx b/apps/erp/app/modules/inventory/ui/StorageTypes/StorageTypeForm.tsxindex e7d4c3c934..fc915117a5 100644--- a/apps/erp/app/modules/inventory/ui/StorageTypes/StorageTypeForm.tsx+++ b/apps/erp/app/modules/inventory/ui/StorageTypes/StorageTypeForm.tsx@@ -97,7 +97,7 @@ const StorageTypeForm = ({</ModalDrawerBody><ModalDrawerFooter><HStack>- <Submit isDisabled={isDisabled}>+ <Submit hideShortcutKey isDisabled={isDisabled}><Trans>Save</Trans></Submit><Button size="md" variant="solid" onClick={() => onClose()}>diff --git a/apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceExplorer.tsx b/apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceExplorer.tsxindex 9d4f79ffbb..342ecdea48 100644--- a/apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceExplorer.tsx+++ b/apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceExplorer.tsx@@ -11,13 +11,12 @@ import {DropdownMenuTrigger,HStack,IconButton,- Kbd,+ ShortcutKey,Tooltip,TooltipContent,TooltipTrigger,useDisclosure,- useKeyboardShortcuts,- usePrettifyShortcut,+ useShortcutKeyMap,VStack} from "@carbon/react";import { getItemReadableId } from "@carbon/utils";@@ -48,6 +47,7 @@ import { getLinkToItemDetails } from "~/modules/items/ui/Item/ItemForm";import type { Supplier } from "~/modules/purchasing/types";import type { ItemType } from "~/modules/shared";import { itemType } from "~/modules/shared";+import { EXPLORER_SHORTCUTS } from "~/shortcuts";import { useItems } from "~/stores";import { path } from "~/utils/path";import type { PurchaseInvoice, PurchaseInvoiceLine } from "../../types";@@ -56,7 +56,6 @@ import MapExtractedInvoiceLinesModal from "./MapExtractedInvoiceLinesModal";import PurchaseInvoiceLineForm from "./PurchaseInvoiceLineForm";export default function PurchaseInvoiceExplorer() {- const prettifyShortcut = usePrettifyShortcut();const { defaults } = useUser();const { invoiceId } = useParams();if (!invoiceId) throw new Error("Could not find invoiceId");@@ -101,12 +100,15 @@ export default function PurchaseInvoiceExplorer() {};const newButtonRef = useRef<HTMLButtonElement>(null);- useKeyboardShortcuts({- "Command+Shift+l": (event: KeyboardEvent) => {- event.stopPropagation();- newButtonRef.current?.click();+ useShortcutKeyMap([+ {+ shortcut: EXPLORER_SHORTCUTS.addLine,+ action: (event: KeyboardEvent) => {+ event.stopPropagation();+ newButtonRef.current?.click();+ }}- });+ ]);const lines = purchaseInvoiceData?.purchaseInvoiceLines ?? [];const unmappedLines = lines.filter(@@ -223,7 +225,10 @@ export default function PurchaseInvoiceExplorer() {<span><Trans>New Line Item</Trans></span>- <Kbd>{prettifyShortcut("Command+Shift+l")}</Kbd>+ <ShortcutKey+ shortcut={EXPLORER_SHORTCUTS.addLine}+ variant="small"+ /></HStack></TooltipContent></Tooltip>diff --git a/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoiceExplorer.tsx b/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoiceExplorer.tsxindex 01380db712..d1039ac6c5 100644--- a/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoiceExplorer.tsx+++ b/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoiceExplorer.tsx@@ -8,13 +8,12 @@ import {DropdownMenuTrigger,HStack,IconButton,- Kbd,+ ShortcutKey,Tooltip,TooltipContent,TooltipTrigger,useDisclosure,- useKeyboardShortcuts,- usePrettifyShortcut,+ useShortcutKeyMap,VStack} from "@carbon/react";import { getItemReadableId } from "@carbon/utils";@@ -45,6 +44,7 @@ import { getLinkToItemDetails } from "~/modules/items/ui/Item/ItemForm";import type { Supplier } from "~/modules/purchasing/types";import type { ItemType } from "~/modules/shared";import { itemType } from "~/modules/shared";+import { EXPLORER_SHORTCUTS } from "~/shortcuts";import { useItems } from "~/stores";import { path } from "~/utils/path";import { isSalesInvoiceLocked } from "../../invoicing.models";@@ -53,7 +53,6 @@ import DeleteSalesInvoiceLine from "./DeleteSalesInvoiceLine";import SalesInvoiceLineForm from "./SalesInvoiceLineForm";export default function SalesInvoiceExplorer() {- const prettifyShortcut = usePrettifyShortcut();const { defaults } = useUser();const { invoiceId } = useParams();if (!invoiceId) throw new Error("Could not find invoiceId");@@ -99,12 +98,15 @@ export default function SalesInvoiceExplorer() {};const newButtonRef = useRef<HTMLButtonElement>(null);- useKeyboardShortcuts({- "Command+Shift+l": (event: KeyboardEvent) => {- event.stopPropagation();- newButtonRef.current?.click();+ useShortcutKeyMap([+ {+ shortcut: EXPLORER_SHORTCUTS.addLine,+ action: (event: KeyboardEvent) => {+ event.stopPropagation();+ newButtonRef.current?.click();+ }}- });+ ]);const lines = salesInvoiceData?.salesInvoiceLines ?? [];const canReorder =@@ -191,7 +193,10 @@ export default function SalesInvoiceExplorer() {<span><Trans>New Line Item</Trans></span>- <Kbd>{prettifyShortcut("Command+Shift+l")}</Kbd>+ <ShortcutKey+ shortcut={EXPLORER_SHORTCUTS.addLine}+ variant="small"+ /></HStack></TooltipContent></Tooltip>diff --git a/apps/erp/app/modules/items/ui/ChangeNoticeTypes/ChangeNoticeTypeForm.tsx b/apps/erp/app/modules/items/ui/ChangeNoticeTypes/ChangeNoticeTypeForm.tsxindex 6b982fa6aa..fc09a1e7de 100644--- a/apps/erp/app/modules/items/ui/ChangeNoticeTypes/ChangeNoticeTypeForm.tsx+++ b/apps/erp/app/modules/items/ui/ChangeNoticeTypes/ChangeNoticeTypeForm.tsx@@ -94,7 +94,7 @@ const ChangeNoticeTypeForm = ({</ModalDrawerBody><ModalDrawerFooter><HStack>- <Submit isDisabled={isDisabled}>+ <Submit hideShortcutKey isDisabled={isDisabled}><Trans>Save</Trans></Submit><Button size="md" variant="solid" onClick={() => onClose()}>diff --git a/apps/erp/app/modules/items/ui/Consumables/useConsumableNavigation.tsx b/apps/erp/app/modules/items/ui/Consumables/useConsumableNavigation.tsxindex 8e9ebea44b..3f80804cd4 100644--- a/apps/erp/app/modules/items/ui/Consumables/useConsumableNavigation.tsx+++ b/apps/erp/app/modules/items/ui/Consumables/useConsumableNavigation.tsx@@ -9,6 +9,7 @@ import {} from "react-icons/lu";import { useParams } from "react-router";import { usePermissions, useRouteData } from "~/hooks";+import { DETAIL_TAB_SHORTCUTS } from "~/shortcuts";import type { Role } from "~/types";import { path } from "~/utils/path";import type { ConsumableSummary } from "../../types";@@ -32,7 +33,7 @@ export function useConsumableNavigation() {name: t`Details`,to: path.to.consumableDetails(itemId),icon: LuFileText,- shortcut: "Command+Shift+d"+ shortcut: DETAIL_TAB_SHORTCUTS.details},{name: t`Purchasing`,@@ -40,7 +41,7 @@ export function useConsumableNavigation() {role: ["employee", "supplier"],permission: "purchasing",icon: LuShoppingCart,- shortcut: "Command+Shift+p"+ shortcut: DETAIL_TAB_SHORTCUTS.purchasing},{name: t`Accounting`,@@ -48,7 +49,7 @@ export function useConsumableNavigation() {role: ["employee"],permission: "purchasing",icon: LuTags,- shortcut: "Command+Shift+a"+ shortcut: DETAIL_TAB_SHORTCUTS.accounting},{name: t`Planning`,@@ -56,7 +57,7 @@ export function useConsumableNavigation() {isDisabled: itemTrackingType === "Non-Inventory",role: ["employee"],icon: LuChartLine,- shortcut: "Command+Shift+p"+ shortcut: DETAIL_TAB_SHORTCUTS.planning},{name: t`Inventory`,@@ -64,7 +65,7 @@ export function useConsumableNavigation() {isDisabled: itemTrackingType === "Non-Inventory",role: ["employee", "supplier"],icon: LuBox,- shortcut: "Command+Shift+i"+ shortcut: DETAIL_TAB_SHORTCUTS.inventory},{name: t`Quality`,@@ -72,7 +73,7 @@ export function useConsumableNavigation() {role: ["employee"],permission: "quality",icon: LuClipboardCheck,- shortcut: "Command+Shift+q"+ shortcut: DETAIL_TAB_SHORTCUTS.quality}].filter((item) =>diff --git a/apps/erp/app/modules/items/ui/Materials/useMaterialNavigation.tsx b/apps/erp/app/modules/items/ui/Materials/useMaterialNavigation.tsxindex 6de82fbaf5..555c0cead3 100644--- a/apps/erp/app/modules/items/ui/Materials/useMaterialNavigation.tsx+++ b/apps/erp/app/modules/items/ui/Materials/useMaterialNavigation.tsx@@ -9,6 +9,7 @@ import {} from "react-icons/lu";import { useParams } from "react-router";import { usePermissions, useRouteData } from "~/hooks";+import { DETAIL_TAB_SHORTCUTS } from "~/shortcuts";import type { Role } from "~/types";import { path } from "~/utils/path";import type { MaterialSummary } from "../../types";@@ -32,7 +33,7 @@ export function useMaterialNavigation() {name: t`Details`,to: path.to.materialDetails(itemId),icon: LuFileText,- shortcut: "Command+Shift+d"+ shortcut: DETAIL_TAB_SHORTCUTS.details},{name: t`Purchasing`,@@ -40,7 +41,7 @@ export function useMaterialNavigation() {role: ["employee", "supplier"],permission: "purchasing",icon: LuShoppingCart,- shortcut: "Command+Shift+p"+ shortcut: DETAIL_TAB_SHORTCUTS.purchasing},{name: t`Accounting`,@@ -48,7 +49,7 @@ export function useMaterialNavigation() {role: ["employee"],permission: "purchasing",icon: LuTags,- shortcut: "Command+Shift+a"+ shortcut: DETAIL_TAB_SHORTCUTS.accounting},{name: t`Planning`,@@ -56,7 +57,7 @@ export function useMaterialNavigation() {isDisabled: itemTrackingType === "Non-Inventory",role: ["employee"],icon: LuChartLine,- shortcut: "Command+Shift+p"+ shortcut: DETAIL_TAB_SHORTCUTS.planning},{name: t`Inventory`,@@ -64,7 +65,7 @@ export function useMaterialNavigation() {isDisabled: itemTrackingType === "Non-Inventory",role: ["employee", "supplier"],icon: LuBox,- shortcut: "Command+Shift+i"+ shortcut: DETAIL_TAB_SHORTCUTS.inventory},{name: t`Quality`,@@ -72,7 +73,7 @@ export function useMaterialNavigation() {role: ["employee"],permission: "quality",icon: LuClipboardCheck,- shortcut: "Command+Shift+q"+ shortcut: DETAIL_TAB_SHORTCUTS.quality}].filter((item) =>diff --git a/apps/erp/app/modules/items/ui/Parts/usePartNavigation.tsx b/apps/erp/app/modules/items/ui/Parts/usePartNavigation.tsxindex d40e4e7c22..d3345ce74a 100644--- a/apps/erp/app/modules/items/ui/Parts/usePartNavigation.tsx+++ b/apps/erp/app/modules/items/ui/Parts/usePartNavigation.tsx@@ -10,6 +10,7 @@ import {} from "react-icons/lu";import { useParams } from "react-router";import { usePermissions, useRouteData } from "~/hooks";+import { DETAIL_TAB_SHORTCUTS } from "~/shortcuts";import type { Role } from "~/types";import { path } from "~/utils/path";import type { PartSummary } from "../../types";@@ -36,7 +37,7 @@ export function usePartNavigation() {name: t`Details`,to: path.to.partDetails(itemId),icon: LuFileText,- shortcut: "Command+Shift+d"+ shortcut: DETAIL_TAB_SHORTCUTS.details},{name: t`Purchasing`,@@ -45,7 +46,7 @@ export function usePartNavigation() {role: ["employee", "supplier"],permission: "purchasing",icon: LuShoppingCart,- shortcut: "Command+Shift+p"+ shortcut: DETAIL_TAB_SHORTCUTS.purchasing},{name: t`Accounting`,@@ -53,7 +54,7 @@ export function usePartNavigation() {role: ["employee"],permission: "purchasing",icon: LuTags,- shortcut: "Command+Shift+a"+ shortcut: DETAIL_TAB_SHORTCUTS.accounting},{name: t`Planning`,@@ -61,7 +62,7 @@ export function usePartNavigation() {isDisabled: itemTrackingType === "Non-Inventory",role: ["employee"],icon: LuChartLine,- shortcut: "Command+Shift+p"+ shortcut: DETAIL_TAB_SHORTCUTS.planning},{name: t`Inventory`,@@ -69,14 +70,14 @@ export function usePartNavigation() {isDisabled: itemTrackingType === "Non-Inventory",role: ["employee", "supplier"],icon: LuBox,- shortcut: "Command+Shift+i"+ shortcut: DETAIL_TAB_SHORTCUTS.inventory},{name: t`Sales`,to: path.to.partSales(itemId),role: ["employee", "customer"],icon: LuReceipt,- shortcut: "Command+Shift+x"+ shortcut: DETAIL_TAB_SHORTCUTS.sales},{name: t`Quality`,@@ -84,7 +85,7 @@ export function usePartNavigation() {role: ["employee"],permission: "quality",icon: LuClipboardCheck,- shortcut: "Command+Shift+q"+ shortcut: DETAIL_TAB_SHORTCUTS.quality}].filter((item) =>diff --git a/apps/erp/app/modules/items/ui/Services/useServiceNavigation.tsx b/apps/erp/app/modules/items/ui/Services/useServiceNavigation.tsxindex aadd7ae890..22614a288c 100644--- a/apps/erp/app/modules/items/ui/Services/useServiceNavigation.tsx+++ b/apps/erp/app/modules/items/ui/Services/useServiceNavigation.tsx@@ -8,6 +8,7 @@ import {} from "react-icons/lu";import { useParams } from "react-router";import { usePermissions, useRouteData } from "~/hooks";+import { DETAIL_TAB_SHORTCUTS } from "~/shortcuts";import type { Role } from "~/types";import { path } from "~/utils/path";import type { ServiceSummary } from "../../types";@@ -31,7 +32,7 @@ export function useServiceNavigation() {name: t`Details`,to: path.to.serviceDetails(itemId),icon: LuFileText,- shortcut: "Command+Shift+d"+ shortcut: DETAIL_TAB_SHORTCUTS.details},{name: t`Purchasing`,@@ -40,14 +41,14 @@ export function useServiceNavigation() {role: ["employee", "supplier"],permission: "purchasing",icon: LuShoppingCart,- shortcut: "Command+Shift+p"+ shortcut: DETAIL_TAB_SHORTCUTS.purchasing},{name: t`Sales`,to: path.to.serviceSales(itemId),role: ["employee", "customer"],icon: LuReceipt,- shortcut: "Command+Shift+x"+ shortcut: DETAIL_TAB_SHORTCUTS.sales},{name: t`Accounting`,@@ -55,7 +56,7 @@ export function useServiceNavigation() {role: ["employee"],permission: "purchasing",icon: LuTags,- shortcut: "Command+Shift+a"+ shortcut: DETAIL_TAB_SHORTCUTS.accounting},{name: t`Quality`,@@ -63,7 +64,7 @@ export function useServiceNavigation() {role: ["employee"],permission: "quality",icon: LuClipboardCheck,- shortcut: "Command+Shift+q"+ shortcut: DETAIL_TAB_SHORTCUTS.quality}].filter((item) =>diff --git a/apps/erp/app/modules/items/ui/Tools/useToolNavigation.tsx b/apps/erp/app/modules/items/ui/Tools/useToolNavigation.tsxindex 18a8543f5e..378efef3ec 100644--- a/apps/erp/app/modules/items/ui/Tools/useToolNavigation.tsx+++ b/apps/erp/app/modules/items/ui/Tools/useToolNavigation.tsx@@ -9,6 +9,7 @@ import {} from "react-icons/lu";import { useParams } from "react-router";import { usePermissions, useRouteData } from "~/hooks";+import { DETAIL_TAB_SHORTCUTS } from "~/shortcuts";import type { Role } from "~/types";import { path } from "~/utils/path";import type { ToolSummary } from "../../types";@@ -35,7 +36,7 @@ export function useToolNavigation() {name: t`Details`,to: path.to.toolDetails(itemId),icon: LuFileText,- shortcut: "Command+Shift+d"+ shortcut: DETAIL_TAB_SHORTCUTS.details},{name: t`Purchasing`,@@ -44,7 +45,7 @@ export function useToolNavigation() {role: ["employee", "supplier"],permission: "purchasing",icon: LuShoppingCart,- shortcut: "Command+Shift+p"+ shortcut: DETAIL_TAB_SHORTCUTS.purchasing},{name: t`Accounting`,@@ -52,7 +53,7 @@ export function useToolNavigation() {role: ["employee"],permission: "purchasing",icon: LuTags,- shortcut: "Command+Shift+a"+ shortcut: DETAIL_TAB_SHORTCUTS.accounting},{name: t`Planning`,@@ -60,7 +61,7 @@ export function useToolNavigation() {isDisabled: itemTrackingType === "Non-Inventory",role: ["employee"],icon: LuChartLine,- shortcut: "Command+Shift+p"+ shortcut: DETAIL_TAB_SHORTCUTS.planning},{name: t`Inventory`,@@ -68,7 +69,7 @@ export function useToolNavigation() {isDisabled: itemTrackingType === "Non-Inventory",role: ["employee", "supplier"],icon: LuBox,- shortcut: "Command+Shift+i"+ shortcut: DETAIL_TAB_SHORTCUTS.inventory},{name: t`Quality`,@@ -76,7 +77,7 @@ export function useToolNavigation() {role: ["employee"],permission: "quality",icon: LuClipboardCheck,- shortcut: "Command+Shift+q"+ shortcut: DETAIL_TAB_SHORTCUTS.quality}].filter((item) =>diff --git a/apps/erp/app/modules/production/ui/Procedures/ProcedureExplorer.tsx b/apps/erp/app/modules/production/ui/Procedures/ProcedureExplorer.tsxindex a1fde02323..c9b92a1ecf 100644--- a/apps/erp/app/modules/production/ui/Procedures/ProcedureExplorer.tsx+++ b/apps/erp/app/modules/production/ui/Procedures/ProcedureExplorer.tsx@@ -26,8 +26,8 @@ import {DropdownMenuTrigger,HStack,IconButton,- Kbd,Label,+ ShortcutKey,Tabs,TabsContent,TabsList,@@ -40,8 +40,7 @@ import {toast,useDebounce,useDisclosure,- useKeyboardShortcuts,- usePrettifyShortcut,+ useShortcutKeyMap,VStack} from "@carbon/react";import { Editor } from "@carbon/react/Editor";@@ -70,6 +69,7 @@ import { ProcedureStepTypeIcon } from "~/components/Icons";import { ConfirmDelete } from "~/components/Modals";import { usePermissions, useRouteData, useUser } from "~/hooks";import { procedureStepType } from "~/modules/shared";+import { EXPLORER_SHORTCUTS } from "~/shortcuts";import { getPrivateUrl, path } from "~/utils/path";import {procedureParameterValidator,@@ -80,7 +80,6 @@ import type { Procedure, ProcedureParameter, ProcedureStep } from "../../types";const logger = getLogger("erp", "procedureexplorer");export default function ProcedureExplorer() {- const prettifyShortcut = usePrettifyShortcut();const { id } = useParams();if (!id) throw new Error("Could not find id");const procedureData = useRouteData<{@@ -217,24 +216,30 @@ export default function ProcedureExplorer() {};const newAttributeRef = useRef<HTMLButtonElement>(null);- useKeyboardShortcuts({- "Command+Shift+a": (event: KeyboardEvent) => {- event.stopPropagation();- if (!isDisabled) {- newAttributeRef.current?.click();+ useShortcutKeyMap([+ {+ shortcut: EXPLORER_SHORTCUTS.addAttribute,+ action: (event: KeyboardEvent) => {+ event.stopPropagation();+ if (!isDisabled) {+ newAttributeRef.current?.click();+ }}}- });+ ]);const newParameterRef = useRef<HTMLButtonElement>(null);- useKeyboardShortcuts({- "Command+Shift+p": (event: KeyboardEvent) => {- event.stopPropagation();- if (!isDisabled) {- newParameterRef.current?.click();+ useShortcutKeyMap([+ {+ shortcut: EXPLORER_SHORTCUTS.addParameter,+ action: (event: KeyboardEvent) => {+ event.stopPropagation();+ if (!isDisabled) {+ newParameterRef.current?.click();+ }}}- });+ ]);const attributeMap = useMemo(() =>@@ -342,7 +347,10 @@ export default function ProcedureExplorer() {<span><Trans>Add Step</Trans></span>- <Kbd>{prettifyShortcut("Command+Shift+a")}</Kbd>+ <ShortcutKey+ shortcut={EXPLORER_SHORTCUTS.addAttribute}+ variant="small"+ /></HStack>{isDisabled && (<span className="text-muted-foreground">@@ -423,7 +431,10 @@ export default function ProcedureExplorer() {<span><Trans>Add Parameter</Trans></span>- <Kbd>{prettifyShortcut("Command+Shift+p")}</Kbd>+ <ShortcutKey+ shortcut={EXPLORER_SHORTCUTS.addParameter}+ variant="small"+ /></HStack></TooltipContent></Tooltip>diff --git a/apps/erp/app/modules/production/ui/ScrapReasons/ScrapReasonForm.tsx b/apps/erp/app/modules/production/ui/ScrapReasons/ScrapReasonForm.tsxindex ebd3d146e6..b50042fb2d 100644--- a/apps/erp/app/modules/production/ui/ScrapReasons/ScrapReasonForm.tsx+++ b/apps/erp/app/modules/production/ui/ScrapReasons/ScrapReasonForm.tsx@@ -93,7 +93,7 @@ const ScrapReasonForm = ({</ModalDrawerBody><ModalDrawerFooter><HStack>- <Submit isDisabled={isDisabled}>+ <Submit hideShortcutKey isDisabled={isDisabled}><Trans>Save</Trans></Submit><Button size="md" variant="solid" onClick={() => onClose()}>diff --git a/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderExplorer.tsx b/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderExplorer.tsxindex 9a75965325..e5f8ded65a 100644--- a/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderExplorer.tsx+++ b/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderExplorer.tsx@@ -8,14 +8,13 @@ import {DropdownMenuTrigger,HStack,IconButton,- Kbd,+ ShortcutKey,Tooltip,TooltipContent,TooltipTrigger,useDisclosure,- useKeyboardShortcuts,useMount,- usePrettifyShortcut,+ useShortcutKeyMap,VStack} from "@carbon/react";import { getItemReadableId } from "@carbon/utils";@@ -48,6 +47,7 @@ import {import { getLinkToItemDetails } from "~/modules/items/ui/Item/ItemForm";import type { ItemType } from "~/modules/shared";import { itemType } from "~/modules/shared";+import { EXPLORER_SHORTCUTS } from "~/shortcuts";import { useItems } from "~/stores";import { path } from "~/utils/path";import { isPurchaseOrderLocked } from "../../purchasing.models";@@ -56,7 +56,6 @@ import DeletePurchaseOrderLine from "./DeletePurchaseOrderLine";import PurchaseOrderLineForm from "./PurchaseOrderLineForm";export default function PurchaseOrderExplorer() {- const prettifyShortcut = usePrettifyShortcut();const { defaults } = useUser();const { orderId } = useParams();if (!orderId) throw new Error("Could not find orderId");@@ -115,12 +114,15 @@ export default function PurchaseOrderExplorer() {};const newButtonRef = useRef<HTMLButtonElement>(null);- useKeyboardShortcuts({- "Command+Shift+l": (event: KeyboardEvent) => {- event.stopPropagation();- newButtonRef.current?.click();+ useShortcutKeyMap([+ {+ shortcut: EXPLORER_SHORTCUTS.addLine,+ action: (event: KeyboardEvent) => {+ event.stopPropagation();+ newButtonRef.current?.click();+ }}- });+ ]);return (<>@@ -198,7 +200,10 @@ export default function PurchaseOrderExplorer() {<span><Trans>New Line Item</Trans></span>- <Kbd>{prettifyShortcut("Command+Shift+l")}</Kbd>+ <ShortcutKey+ shortcut={EXPLORER_SHORTCUTS.addLine}+ variant="small"+ /></HStack></TooltipContent></Tooltip>diff --git a/apps/erp/app/modules/purchasing/ui/PurchasingRfq/PurchasingRFQExplorer.tsx b/apps/erp/app/modules/purchasing/ui/PurchasingRfq/PurchasingRFQExplorer.tsxindex 172d7e0907..4e34a039f5 100644--- a/apps/erp/app/modules/purchasing/ui/PurchasingRfq/PurchasingRFQExplorer.tsx+++ b/apps/erp/app/modules/purchasing/ui/PurchasingRfq/PurchasingRFQExplorer.tsx@@ -8,13 +8,12 @@ import {DropdownMenuTrigger,HStack,IconButton,- Kbd,+ ShortcutKey,Tooltip,TooltipContent,TooltipTrigger,useDisclosure,- useKeyboardShortcuts,- usePrettifyShortcut,+ useShortcutKeyMap,VStack} from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";@@ -36,6 +35,7 @@ import {} from "~/components/LineReorder";import { usePermissions, useRouteData } from "~/hooks";import type { MethodItemType } from "~/modules/shared";+import { EXPLORER_SHORTCUTS } from "~/shortcuts";import { path } from "~/utils/path";import { isRfqLocked } from "../../purchasing.models";import type { PurchasingRFQ, PurchasingRFQLine } from "../../types";@@ -43,7 +43,6 @@ import DeletePurchasingRFQLine from "./DeletePurchasingRFQLine";import PurchasingRFQLineForm from "./PurchasingRFQLineForm";export default function PurchasingRFQExplorer() {- const prettifyShortcut = usePrettifyShortcut();const { rfqId } = useParams();if (!rfqId) throw new Error("Could not find rfqId");const purchasingRfqData = useRouteData<{@@ -67,12 +66,15 @@ export default function PurchasingRFQExplorer() {};const newButtonRef = useRef<HTMLButtonElement>(null);- useKeyboardShortcuts({- "Command+Shift+l": (event: KeyboardEvent) => {- event.stopPropagation();- newButtonRef.current?.click();+ useShortcutKeyMap([+ {+ shortcut: EXPLORER_SHORTCUTS.addLine,+ action: (event: KeyboardEvent) => {+ event.stopPropagation();+ newButtonRef.current?.click();+ }}- });+ ]);const purchasingRfqLineInitialValues = {purchasingRfqId: rfqId,@@ -175,7 +177,10 @@ export default function PurchasingRFQExplorer() {<span><Trans>New Line Item</Trans></span>- <Kbd>{prettifyShortcut("Command+Shift+l")}</Kbd>+ <ShortcutKey+ shortcut={EXPLORER_SHORTCUTS.addLine}+ variant="small"+ /></HStack></TooltipContent></Tooltip>diff --git a/apps/erp/app/modules/purchasing/ui/Supplier/SupplierSidebar/useSupplierSidebar.tsx b/apps/erp/app/modules/purchasing/ui/Supplier/SupplierSidebar/useSupplierSidebar.tsxindex 9a1e9399dc..0fc5eda62b 100644--- a/apps/erp/app/modules/purchasing/ui/Supplier/SupplierSidebar/useSupplierSidebar.tsx+++ b/apps/erp/app/modules/purchasing/ui/Supplier/SupplierSidebar/useSupplierSidebar.tsx@@ -14,6 +14,7 @@ import {} from "react-icons/lu";import { useParams } from "react-router";import { usePermissions } from "~/hooks";+import { DETAIL_TAB_SHORTCUTS } from "~/shortcuts";import type { Role } from "~/types";import { path } from "~/utils/path";@@ -33,7 +34,7 @@ export function useSupplierSidebar({ contacts, locations }: Props) {name: t`Details`,to: path.to.supplierDetails(supplierId),icon: <LuBuilding />,- shortcut: "Command+Shift+d"+ shortcut: DETAIL_TAB_SHORTCUTS.details},{name: t`Contacts`,@@ -41,7 +42,7 @@ export function useSupplierSidebar({ contacts, locations }: Props) {role: ["employee"],count: contacts,icon: <LuContact />,- shortcut: "Command+Shift+c"+ shortcut: DETAIL_TAB_SHORTCUTS.contacts},{name: t`Locations`,@@ -49,35 +50,35 @@ export function useSupplierSidebar({ contacts, locations }: Props) {role: ["employee", "supplier"],count: locations,icon: <LuMapPin />,- shortcut: "Command+Shift+l"+ shortcut: DETAIL_TAB_SHORTCUTS.locations},{name: t`Payment`,to: path.to.supplierPayment(supplierId),role: ["employee"],icon: <LuCreditCard />,- shortcut: "Command+Shift+p"+ shortcut: DETAIL_TAB_SHORTCUTS.payment},{name: t`Tax`,to: path.to.supplierTax(supplierId),role: ["employee"],icon: <LuReceipt />,- shortcut: "Command+Shift+t"+ shortcut: DETAIL_TAB_SHORTCUTS.tax},{name: t`Shipping`,to: path.to.supplierShipping(supplierId),role: ["employee"],icon: <LuTruck />,- shortcut: "Command+Shift+s"+ shortcut: DETAIL_TAB_SHORTCUTS.shipping},{name: t`Processes`,to: path.to.supplierProcesses(supplierId),role: ["employee"],icon: <LuRedoDot />,- shortcut: "Command+Shift+r"+ shortcut: DETAIL_TAB_SHORTCUTS.processes},{name: t`Default Attachments`,@@ -112,14 +113,14 @@ export function useSupplierSidebar({ contacts, locations }: Props) {// to: path.to.supplierShipping(supplierId),// role: ["employee"],// icon: <LuTruck />,- // shortcut: "Command+Shift+s",+ // shortcut: DETAIL_TAB_SHORTCUTS.shipping,// },// {// name: t`Accounting`,// to: path.to.supplierAccounting(supplierId),// role: ["employee"],// icon: <LuLandmark />,- // shortcut: "Command+Shift+a",+ // shortcut: DETAIL_TAB_SHORTCUTS.accounting,// },].filter((item) =>diff --git a/apps/erp/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteExplorer.tsx b/apps/erp/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteExplorer.tsxindex f6ce6f02ed..dcb8c81431 100644--- a/apps/erp/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteExplorer.tsx+++ b/apps/erp/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteExplorer.tsx@@ -8,14 +8,13 @@ import {DropdownMenuTrigger,HStack,IconButton,- Kbd,+ ShortcutKey,Tooltip,TooltipContent,TooltipTrigger,useDisclosure,- useKeyboardShortcuts,useMount,- usePrettifyShortcut,+ useShortcutKeyMap,VStack} from "@carbon/react";import { getItemReadableId } from "@carbon/utils";@@ -40,6 +39,7 @@ import { useOptimisticLocation, usePermissions, useRouteData } from "~/hooks";import { getLinkToItemDetails } from "~/modules/items/ui/Item/ItemForm";import type { ItemType } from "~/modules/shared";import { itemType } from "~/modules/shared";+import { EXPLORER_SHORTCUTS } from "~/shortcuts";import { useItems } from "~/stores";import { path } from "~/utils/path";import { isSupplierQuoteLocked } from "../../purchasing.models";@@ -48,7 +48,6 @@ import DeleteSupplierQuoteLine from "./DeleteSupplierQuoteLine";import SupplierQuoteLineForm from "./SupplierQuoteLineForm";export default function SupplierQuoteExplorer() {- const prettifyShortcut = usePrettifyShortcut();const { id } = useParams();if (!id) throw new Error("Could not find id");const routeData = useRouteData<{@@ -87,12 +86,15 @@ export default function SupplierQuoteExplorer() {};const newButtonRef = useRef<HTMLButtonElement>(null);- useKeyboardShortcuts({- "Command+Shift+l": (event: KeyboardEvent) => {- event.stopPropagation();- newButtonRef.current?.click();+ useShortcutKeyMap([+ {+ shortcut: EXPLORER_SHORTCUTS.addLine,+ action: (event: KeyboardEvent) => {+ event.stopPropagation();+ newButtonRef.current?.click();+ }}- });+ ]);const lines = routeData?.lines ?? [];const canReorder =@@ -179,7 +181,10 @@ export default function SupplierQuoteExplorer() {<span><Trans>New Line Item</Trans></span>- <Kbd>{prettifyShortcut("Command+Shift+l")}</Kbd>+ <ShortcutKey+ shortcut={EXPLORER_SHORTCUTS.addLine}+ variant="small"+ /></HStack></TooltipContent></Tooltip>diff --git a/apps/erp/app/modules/purchasing/ui/SupplierTypes/SupplierTypeForm.tsx b/apps/erp/app/modules/purchasing/ui/SupplierTypes/SupplierTypeForm.tsxindex 754605c15e..49e9f439d7 100644--- a/apps/erp/app/modules/purchasing/ui/SupplierTypes/SupplierTypeForm.tsx+++ b/apps/erp/app/modules/purchasing/ui/SupplierTypes/SupplierTypeForm.tsx@@ -93,7 +93,7 @@ const SupplierTypeForm = ({</ModalDrawerBody><ModalDrawerFooter><HStack>- <Submit isDisabled={isDisabled}>+ <Submit hideShortcutKey isDisabled={isDisabled}><Trans>Save</Trans></Submit><Button size="md" variant="solid" onClick={() => onClose()}>diff --git a/apps/erp/app/modules/quality/ui/GaugeTypes/GaugeTypeForm.tsx b/apps/erp/app/modules/quality/ui/GaugeTypes/GaugeTypeForm.tsxindex 3eb5148abb..fa5d085798 100644--- a/apps/erp/app/modules/quality/ui/GaugeTypes/GaugeTypeForm.tsx+++ b/apps/erp/app/modules/quality/ui/GaugeTypes/GaugeTypeForm.tsx@@ -93,7 +93,7 @@ const GaugeTypeForm = ({</ModalDrawerBody><ModalDrawerFooter><HStack>- <Submit isDisabled={isDisabled}>+ <Submit hideShortcutKey isDisabled={isDisabled}><Trans>Save</Trans></Submit><Button size="md" variant="solid" onClick={() => onClose()}>diff --git a/apps/erp/app/modules/quality/ui/Issue/ReviewersList.tsx b/apps/erp/app/modules/quality/ui/Issue/ReviewersList.tsxindex b4d8e667e0..83f646157c 100644--- a/apps/erp/app/modules/quality/ui/Issue/ReviewersList.tsx+++ b/apps/erp/app/modules/quality/ui/Issue/ReviewersList.tsx@@ -107,6 +107,7 @@ export function ReviewersList({<Trans>Cancel</Trans></Button><Submit+ hideShortcutKeyisLoading={fetcher.state === "submitting"}isDisabled={fetcher.state === "submitting"}>diff --git a/apps/erp/app/modules/quality/ui/IssueTypes/IssueTypeForm.tsx b/apps/erp/app/modules/quality/ui/IssueTypes/IssueTypeForm.tsxindex b8bb73d8e0..93a566bf10 100644--- a/apps/erp/app/modules/quality/ui/IssueTypes/IssueTypeForm.tsx+++ b/apps/erp/app/modules/quality/ui/IssueTypes/IssueTypeForm.tsx@@ -95,7 +95,7 @@ const IssueTypeForm = ({</ModalDrawerBody><ModalDrawerFooter><HStack>- <Submit isDisabled={isDisabled}>+ <Submit hideShortcutKey isDisabled={isDisabled}><Trans>Save</Trans></Submit><Button size="md" variant="solid" onClick={() => onClose()}>diff --git a/apps/erp/app/modules/resources/ui/Training/TrainingExplorer.tsx b/apps/erp/app/modules/resources/ui/Training/TrainingExplorer.tsxindex f900f58e4d..51f1c75cea 100644--- a/apps/erp/app/modules/resources/ui/Training/TrainingExplorer.tsx+++ b/apps/erp/app/modules/resources/ui/Training/TrainingExplorer.tsx@@ -25,16 +25,15 @@ import {DropdownMenuTrigger,HStack,IconButton,- Kbd,Label,+ ShortcutKey,Switch,Tooltip,TooltipContent,TooltipTrigger,useDebounce,useDisclosure,- useKeyboardShortcuts,- usePrettifyShortcut,+ useShortcutKeyMap,VStack} from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";@@ -65,10 +64,10 @@ import {trainingQuestionType,trainingQuestionValidator} from "~/modules/resources";+import { EXPLORER_SHORTCUTS } from "~/shortcuts";import { path } from "~/utils/path";export default function TrainingExplorer() {- const prettifyShortcut = usePrettifyShortcut();const { id } = useParams();if (!id) throw new Error("Could not find id");const trainingData = useRouteData<{@@ -171,14 +170,17 @@ export default function TrainingExplorer() {};const newQuestionRef = useRef<HTMLButtonElement>(null);- useKeyboardShortcuts({- "Command+Shift+a": (event: KeyboardEvent) => {- event.stopPropagation();- if (!isDisabled) {- newQuestionRef.current?.click();+ useShortcutKeyMap([+ {+ shortcut: EXPLORER_SHORTCUTS.addAttribute,+ action: (event: KeyboardEvent) => {+ event.stopPropagation();+ if (!isDisabled) {+ newQuestionRef.current?.click();+ }}}- });+ ]);const questionMap = useMemo(() =>@@ -268,7 +270,10 @@ export default function TrainingExplorer() {<span><Trans>Add Question</Trans></span>- <Kbd>{prettifyShortcut("Command+Shift+a")}</Kbd>+ <ShortcutKey+ shortcut={EXPLORER_SHORTCUTS.addAttribute}+ variant="small"+ /></HStack></TooltipContent></Tooltip>diff --git a/apps/erp/app/modules/sales/ui/Customer/CustomerSidebar/useCustomerSidebar.tsx b/apps/erp/app/modules/sales/ui/Customer/CustomerSidebar/useCustomerSidebar.tsxindex a14884a9da..698ced93da 100644--- a/apps/erp/app/modules/sales/ui/Customer/CustomerSidebar/useCustomerSidebar.tsx+++ b/apps/erp/app/modules/sales/ui/Customer/CustomerSidebar/useCustomerSidebar.tsx@@ -15,6 +15,7 @@ import {} from "react-icons/ri";import { useParams } from "react-router";import { usePermissions } from "~/hooks";+import { DETAIL_TAB_SHORTCUTS } from "~/shortcuts";import type { Role } from "~/types";import { path } from "~/utils/path";@@ -33,7 +34,7 @@ export function useCustomerSidebar({ contacts, locations }: Props) {name: t`Details`,to: path.to.customerDetails(customerId),icon: <LuBuilding />,- shortcut: "Command+Shift+d"+ shortcut: DETAIL_TAB_SHORTCUTS.details},{name: t`Contacts`,@@ -41,7 +42,7 @@ export function useCustomerSidebar({ contacts, locations }: Props) {role: ["employee"],count: contacts,icon: <LuContact />,- shortcut: "Command+Shift+c"+ shortcut: DETAIL_TAB_SHORTCUTS.contacts},{name: t`Locations`,@@ -49,28 +50,28 @@ export function useCustomerSidebar({ contacts, locations }: Props) {role: ["employee", "customer"],count: locations,icon: <LuMapPin />,- shortcut: "Command+Shift+l"+ shortcut: DETAIL_TAB_SHORTCUTS.locations},{name: t`Payment`,to: path.to.customerPayment(customerId),role: ["employee"],icon: <LuCreditCard />,- shortcut: "Command+Shift+p"+ shortcut: DETAIL_TAB_SHORTCUTS.payment},{name: t`Tax`,to: path.to.customerTax(customerId),role: ["employee"],icon: <LuReceipt />,- shortcut: "Command+Shift+t"+ shortcut: DETAIL_TAB_SHORTCUTS.tax},{name: t`Shipping`,to: path.to.customerShipping(customerId),role: ["employee"],icon: <LuTruck />,- shortcut: "Command+Shift+s"+ shortcut: DETAIL_TAB_SHORTCUTS.shipping},{name: t`Risks`,@@ -106,7 +107,7 @@ export function useCustomerSidebar({ contacts, locations }: Props) {// to: path.to.customerAccounting(customerId),// role: ["employee"],// icon: <LuLandmark />,- // shortcut: "Command+Shift+a",+ // shortcut: DETAIL_TAB_SHORTCUTS.accounting,// },].filter((item) =>diff --git a/apps/erp/app/modules/sales/ui/CustomerStatuses/CustomerStatusForm.tsx b/apps/erp/app/modules/sales/ui/CustomerStatuses/CustomerStatusForm.tsxindex 76d283b3c9..aa479b6309 100644--- a/apps/erp/app/modules/sales/ui/CustomerStatuses/CustomerStatusForm.tsx+++ b/apps/erp/app/modules/sales/ui/CustomerStatuses/CustomerStatusForm.tsx@@ -94,7 +94,7 @@ const CustomerStatusForm = ({</ModalDrawerBody><ModalDrawerFooter><HStack>- <Submit isDisabled={isDisabled}>+ <Submit hideShortcutKey isDisabled={isDisabled}><Trans>Save</Trans></Submit><Button size="md" variant="solid" onClick={() => onClose()}>diff --git a/apps/erp/app/modules/sales/ui/CustomerTypes/CustomerTypeForm.tsx b/apps/erp/app/modules/sales/ui/CustomerTypes/CustomerTypeForm.tsxindex dc3c9f1556..6c59a9d42d 100644--- a/apps/erp/app/modules/sales/ui/CustomerTypes/CustomerTypeForm.tsx+++ b/apps/erp/app/modules/sales/ui/CustomerTypes/CustomerTypeForm.tsx@@ -94,7 +94,7 @@ const CustomerTypeForm = ({</ModalDrawerBody><ModalDrawerFooter><HStack>- <Submit isDisabled={isDisabled}>+ <Submit hideShortcutKey isDisabled={isDisabled}><Trans>Save</Trans></Submit><Button size="md" variant="solid" onClick={() => onClose()}>diff --git a/apps/erp/app/modules/sales/ui/NoQuoteReasons/NoQuoteReasonForm.tsx b/apps/erp/app/modules/sales/ui/NoQuoteReasons/NoQuoteReasonForm.tsxindex fe09c91efd..ee83caf5d6 100644--- a/apps/erp/app/modules/sales/ui/NoQuoteReasons/NoQuoteReasonForm.tsx+++ b/apps/erp/app/modules/sales/ui/NoQuoteReasons/NoQuoteReasonForm.tsx@@ -94,7 +94,7 @@ const NoQuoteReasonForm = ({</ModalDrawerBody><ModalDrawerFooter><HStack>- <Submit isDisabled={isDisabled}>+ <Submit hideShortcutKey isDisabled={isDisabled}><Trans>Save</Trans></Submit><Button size="md" variant="solid" onClick={() => onClose()}>diff --git a/apps/erp/app/modules/sales/ui/Quotes/QuoteExplorer.tsx b/apps/erp/app/modules/sales/ui/Quotes/QuoteExplorer.tsxindex b5971636be..4adff0ec40 100644--- a/apps/erp/app/modules/sales/ui/Quotes/QuoteExplorer.tsx+++ b/apps/erp/app/modules/sales/ui/Quotes/QuoteExplorer.tsx@@ -13,15 +13,14 @@ import {DropdownMenuTrigger,HStack,IconButton,- Kbd,+ ShortcutKey,Spinner,Tooltip,TooltipContent,TooltipTrigger,useDisclosure,- useKeyboardShortcuts,useMount,- usePrettifyShortcut,+ useShortcutKeyMap,VStack} from "@carbon/react";import { useDroppable } from "@dnd-kit/core";@@ -60,6 +59,7 @@ import {} from "~/hooks";import { getLinkToItemDetails } from "~/modules/items/ui/Item/ItemForm";import type { MethodItemType } from "~/modules/shared";+import { EXPLORER_SHORTCUTS } from "~/shortcuts";import { path } from "~/utils/path";import { isQuoteLocked } from "../../sales.models";import type {@@ -77,7 +77,6 @@ type QuoteExplorerProps = {};export default function QuoteExplorer({ methods }: QuoteExplorerProps) {- const prettifyShortcut = usePrettifyShortcut();const { defaults } = useUser();const { quoteId } = useParams();if (!quoteId) throw new Error("Could not find quoteId");@@ -125,12 +124,15 @@ export default function QuoteExplorer({ methods }: QuoteExplorerProps) {};const newButtonRef = useRef<HTMLButtonElement>(null);- useKeyboardShortcuts({- "Command+Shift+l": (event: KeyboardEvent) => {- event.stopPropagation();- newButtonRef.current?.click();+ useShortcutKeyMap([+ {+ shortcut: EXPLORER_SHORTCUTS.addLine,+ action: (event: KeyboardEvent) => {+ event.stopPropagation();+ newButtonRef.current?.click();+ }}- });+ ]);const { setNodeRef: setExplorerRef, isOver: isOverExplorer } = useDroppable({id: "quote-explorer"@@ -254,7 +256,10 @@ export default function QuoteExplorer({ methods }: QuoteExplorerProps) {<span><Trans>New Line Item</Trans></span>- <Kbd>{prettifyShortcut("Command+Shift+l")}</Kbd>+ <ShortcutKey+ shortcut={EXPLORER_SHORTCUTS.addLine}+ variant="small"+ /></HStack></TooltipContent></Tooltip>diff --git a/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderExplorer.tsx b/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderExplorer.tsxindex 67c740aa06..c77d87456a 100644--- a/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderExplorer.tsx+++ b/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderExplorer.tsx@@ -12,14 +12,13 @@ import {Input,InputGroup,InputLeftElement,- Kbd,+ ShortcutKey,Tooltip,TooltipContent,TooltipTrigger,useDisclosure,- useKeyboardShortcuts,useMount,- usePrettifyShortcut,+ useShortcutKeyMap,VStack} from "@carbon/react";import { getItemReadableId } from "@carbon/utils";@@ -61,6 +60,7 @@ import {import { getLinkToItemDetails } from "~/modules/items/ui/Item/ItemForm";import type { ItemType } from "~/modules/shared";import { itemType } from "~/modules/shared";+import { EXPLORER_SHORTCUTS } from "~/shortcuts";import { useItems } from "~/stores/items";import { path } from "~/utils/path";import { isSalesOrderLocked } from "../../sales.models";@@ -125,7 +125,6 @@ function getRelatedItems(}export default function SalesOrderExplorer() {- const prettifyShortcut = usePrettifyShortcut();const { defaults } = useUser();const { orderId } = useParams();if (!orderId) throw new Error("Could not find orderId");@@ -177,12 +176,15 @@ export default function SalesOrderExplorer() {};const newButtonRef = useRef<HTMLButtonElement>(null);- useKeyboardShortcuts({- "Command+Shift+l": (event: KeyboardEvent) => {- event.stopPropagation();- newButtonRef.current?.click();+ useShortcutKeyMap([+ {+ shortcut: EXPLORER_SHORTCUTS.addLine,+ action: (event: KeyboardEvent) => {+ event.stopPropagation();+ newButtonRef.current?.click();+ }}- });+ ]);const lines = salesOrderData?.lines ?? [];const canReorder =@@ -269,7 +271,10 @@ export default function SalesOrderExplorer() {<span><Trans>New Line Item</Trans></span>- <Kbd>{prettifyShortcut("Command+Shift+l")}</Kbd>+ <ShortcutKey+ shortcut={EXPLORER_SHORTCUTS.addLine}+ variant="small"+ /></HStack></TooltipContent></Tooltip>diff --git a/apps/erp/app/modules/sales/ui/SalesRFQ/SalesRFQExplorer.tsx b/apps/erp/app/modules/sales/ui/SalesRFQ/SalesRFQExplorer.tsxindex acd7fe5aeb..7f9fce66b9 100644--- a/apps/erp/app/modules/sales/ui/SalesRFQ/SalesRFQExplorer.tsx+++ b/apps/erp/app/modules/sales/ui/SalesRFQ/SalesRFQExplorer.tsx@@ -11,14 +11,13 @@ import {DropdownMenuTrigger,HStack,IconButton,- Kbd,+ ShortcutKey,Spinner,Tooltip,TooltipContent,TooltipTrigger,useDisclosure,- useKeyboardShortcuts,- usePrettifyShortcut,+ useShortcutKeyMap,VStack} from "@carbon/react";import { useDroppable } from "@dnd-kit/core";@@ -42,6 +41,7 @@ import {} from "~/components/LineReorder";import { usePermissions, useRealtime, useRouteData } from "~/hooks";import type { MethodItemType } from "~/modules/shared";+import { EXPLORER_SHORTCUTS } from "~/shortcuts";import { path } from "~/utils/path";import { isSalesRfqLocked, salesRfqDragValidator } from "../../sales.models";import type { SalesRFQ, SalesRFQLine } from "../../types";@@ -50,7 +50,6 @@ import MapExtractedLinesModal from "./MapExtractedLinesModal";import SalesRFQLineForm from "./SalesRFQLineForm";import { useOptimisticDocumentDrag } from "./useOptimiticDocumentDrag";export default function SalesRFQExplorer() {- const prettifyShortcut = usePrettifyShortcut();const { rfqId } = useParams();if (!rfqId) throw new Error("Could not find rfqId");const salesRfqData = useRouteData<{@@ -83,12 +82,15 @@ export default function SalesRFQExplorer() {};const newButtonRef = useRef<HTMLButtonElement>(null);- useKeyboardShortcuts({- "Command+Shift+l": (event: KeyboardEvent) => {- event.stopPropagation();- newButtonRef.current?.click();+ useShortcutKeyMap([+ {+ shortcut: EXPLORER_SHORTCUTS.addLine,+ action: (event: KeyboardEvent) => {+ event.stopPropagation();+ newButtonRef.current?.click();+ }}- });+ ]);const salesRfqLineInitialValues = {salesRfqId: rfqId,@@ -248,7 +250,10 @@ export default function SalesRFQExplorer() {<span><Trans>New Line Item</Trans></span>- <Kbd>{prettifyShortcut("Command+Shift+l")}</Kbd>+ <ShortcutKey+ shortcut={EXPLORER_SHORTCUTS.addLine}+ variant="small"+ /></HStack></TooltipContent></Tooltip>diff --git a/apps/erp/app/routes/_public+/invite.$code.tsx b/apps/erp/app/routes/_public+/invite.$code.tsxindex b3b1034d3e..29c40c1f3b 100644--- a/apps/erp/app/routes/_public+/invite.$code.tsx+++ b/apps/erp/app/routes/_public+/invite.$code.tsx@@ -401,6 +401,7 @@ export default function Invite() {transition={{ duration: 1.2, ease: "easeInOut", delay: 1.5 }}size="lg"type="submit"+ autoFocus><Trans>Join {company?.name ?? "Company"}</Trans></Button>diff --git a/apps/erp/app/routes/_public+/login.tsx b/apps/erp/app/routes/_public+/login.tsxindex e10057e7dd..8fb587f054 100644--- a/apps/erp/app/routes/_public+/login.tsx+++ b/apps/erp/app/routes/_public+/login.tsx@@ -641,6 +641,7 @@ export default function LoginRoute() {<Inputname="email"label=""+ autoFocusplaceholder={t`Email Address`}autoComplete={hasPasskeyAuth ? "email webauthn" : "email"}/>@@ -652,6 +653,7 @@ export default function LoginRoute() {(!!CLOUDFLARE_TURNSTILE_SITE_KEY && !turnstileToken)}isLoading={fetcher.state === "submitting" || ssoLoading}+ hideShortcutKeysize="lg"className="w-full"withBlocker={false}diff --git a/apps/erp/app/routes/_public+/magic-link.tsx b/apps/erp/app/routes/_public+/magic-link.tsxindex 9882a36f1c..0d569e1ef9 100644--- a/apps/erp/app/routes/_public+/magic-link.tsx+++ b/apps/erp/app/routes/_public+/magic-link.tsx@@ -43,6 +43,7 @@ export default function ConfirmMagicLink() {<Buttonsize="lg"className="w-full mt-6"+ autoFocusonClick={() => {window.location.href = getConfirmationURL(token);}}diff --git a/apps/erp/app/routes/_public+/mfa.tsx b/apps/erp/app/routes/_public+/mfa.tsxindex c68b8cba1f..c6e428112c 100644--- a/apps/erp/app/routes/_public+/mfa.tsx+++ b/apps/erp/app/routes/_public+/mfa.tsx@@ -154,7 +154,7 @@ function MfaCodeField({ result }: { result?: Result }) {if (result?.success === false) setCode("");}, [result, setCode]);- return <InputOTP name="code" label="" />;+ return <InputOTP name="code" label="" autoFocus />;}export default function MfaRoute() {@@ -202,6 +202,7 @@ export default function MfaRoute() {<MfaCodeField result={fetcher.data} /><Submit+ hideShortcutKeysize="lg"className="w-full"withBlocker={false}diff --git a/apps/erp/app/routes/_public+/unlock.tsx b/apps/erp/app/routes/_public+/unlock.tsxindex 59acdfe80d..94a6cb725c 100644--- a/apps/erp/app/routes/_public+/unlock.tsx+++ b/apps/erp/app/routes/_public+/unlock.tsx@@ -345,7 +345,7 @@ function UnlockCodeField({ result }: { result?: Result }) {if (result?.success === false) setCode("");}, [result, setCode]);- return <InputOTP name="code" label="" />;+ return <InputOTP name="code" label="" autoFocus />;}export default function UnlockRoute() {@@ -466,6 +466,7 @@ export default function UnlockRoute() {</p><UnlockCodeField result={fetcher.data} /><Submit+ hideShortcutKeysize="lg"className="w-full"withBlocker={false}diff --git a/apps/erp/app/routes/_public+/verify.tsx b/apps/erp/app/routes/_public+/verify.tsxindex 16f90309c4..163591097a 100644--- a/apps/erp/app/routes/_public+/verify.tsx+++ b/apps/erp/app/routes/_public+/verify.tsx@@ -180,7 +180,7 @@ export default function VerifyRoute() {</Alert>)}- <InputOTP name="code" label="" />+ <InputOTP name="code" label="" autoFocus /><Button type="button" variant="link" size="sm" asChild><Link to="/login">diff --git a/apps/erp/app/routes/onboarding+/industry.tsx b/apps/erp/app/routes/onboarding+/industry.tsxindex b405276439..5038a1f500 100644--- a/apps/erp/app/routes/onboarding+/industry.tsx+++ b/apps/erp/app/routes/onboarding+/industry.tsx@@ -55,6 +55,7 @@ import {getOnboardingDraft,type OnboardingDraft} from "~/services/onboarding-draft.server";+import { ONBOARDING_SHORTCUTS } from "~/shortcuts";import { path } from "~/utils/path";type DataChoice = "template" | "import" | "none";@@ -307,7 +308,8 @@ export default function OnboardingIndustry() {<labelclassName={cn("flex cursor-pointer flex-col items-center justify-center gap-2 rounded-lg border-2 border-dashed p-6 text-center transition-colors",- "border-border hover:border-primary/50 hover:bg-accent/50"+ "border-border hover:border-primary/50 hover:bg-accent/50",+ "has-[:focus-visible]:ring-2 has-[:focus-visible]:ring-ring")}><div className="flex h-10 w-10 items-center justify-center rounded-lg bg-muted text-muted-foreground">@@ -351,6 +353,7 @@ export default function OnboardingIndustry() {variant="primary"size="md"type="submit"+ shortcut={ONBOARDING_SHORTCUTS.continue}isLoading={isSubmitting}isDisabled={!importFile || isSubmitting}>@@ -387,6 +390,7 @@ export default function OnboardingIndustry() {value={dataChoice}onChange={setDataChoice}options={dataChoiceOptions}+ autoFocus/></OnboardingCardContent>@@ -404,12 +408,13 @@ export default function OnboardingIndustry() {</Link></Button>{dataChoice === "none" ? (- <Submit>Next</Submit>+ <Submit shortcut={ONBOARDING_SHORTCUTS.continue}>Next</Submit>) : (<Buttonvariant="primary"size="md"type="button"+ shortcut={ONBOARDING_SHORTCUTS.continue}onClick={handleNext}>Next@@ -434,6 +439,7 @@ export default function OnboardingIndustry() {value={selectedIndustryId}onChange={setSelectedIndustryId}options={industryOptions}+ autoFocus/></OnboardingCardContent>@@ -447,7 +453,12 @@ export default function OnboardingIndustry() {>Previous</Button>- <Submit isDisabled={!selectedIndustryId}>Next</Submit>+ <Submit+ isDisabled={!selectedIndustryId}+ shortcut={ONBOARDING_SHORTCUTS.continue}+ >+ Next+ </Submit></HStack></CardFooter></>diff --git a/apps/erp/app/routes/onboarding+/theme.tsx b/apps/erp/app/routes/onboarding+/theme.tsxindex 7657c643b5..30e6c9d76a 100644--- a/apps/erp/app/routes/onboarding+/theme.tsx+++ b/apps/erp/app/routes/onboarding+/theme.tsx@@ -8,15 +8,16 @@ import {CardTitle,cn,HStack,- useKeyboardShortcuts,+ RadioGroup,+ RadioGroupButton,useMode,VStack} from "@carbon/react";import type { Theme } from "@carbon/utils";import { themes } from "@carbon/utils";import { msg } from "@lingui/core/macro";-import { Trans } from "@lingui/react/macro";-import { useEffect, useRef, useState } from "react";+import { Trans, useLingui } from "@lingui/react/macro";+import { useEffect, useState } from "react";import { BiMoon, BiSun } from "react-icons/bi";import { RxCheck } from "react-icons/rx";import type { ActionFunctionArgs, LoaderFunctionArgs } from "react-router";@@ -34,6 +35,7 @@ import type { Theme as ThemeValue } from "~/modules/settings";import { themeValidator } from "~/modules/settings";import type { action as modeAction } from "~/root";import { getTheme, setTheme } from "~/services/theme.server";+import { ONBOARDING_SHORTCUTS } from "~/shortcuts";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";@@ -70,6 +72,7 @@ export async function action({ request }: ActionFunctionArgs) {export default function OnboardingTheme() {const { theme: initialTheme } = useLoaderData<typeof loader>();+ const { t } = useLingui();const mode = useMode();const modeFetcher = useFetcher<typeof modeAction>();@@ -112,13 +115,13 @@ export default function OnboardingTheme() {const transition = useNavigation();- const nextRef = useRef<HTMLButtonElement>(null);-- useKeyboardShortcuts({- Enter: () => {- nextRef.current?.click();- }- });+ const onModeChange = (nextMode: string) => {+ document.body.removeAttribute("style");+ modeFetcher.submit(+ { mode: nextMode },+ { method: "post", action: path.to.root }+ );+ };return (<OnboardingCard>@@ -134,58 +137,50 @@ export default function OnboardingTheme() {</CardHeader><OnboardingCardContent><VStack spacing={4}>- <HStack className="w-full justify-between">- <modeFetcher.Form- action={path.to.root}- method="post"- onSubmit={() => {- document.body.removeAttribute("style");- }}- className="w-full"+ <RadioGroup+ value={mode === "dark" ? "dark" : "light"}+ onValueChange={onModeChange}+ aria-label={t`Light or dark mode`}+ className="flex w-full gap-2"+ >+ <RadioGroupButton+ value="light"+ autoFocus={mode !== "dark"}+ className={cn(+ "flex-1",+ mode == "light" && "border-2 border-primary"+ )}>- <input type="hidden" name="mode" value="light" />- <Button- variant="secondary"- type="submit"- leftIcon={<BiSun />}- className={cn(- "w-full",- mode == "light" && "border-2 border-primary"- )}- >- <Trans>Light</Trans>- </Button>- </modeFetcher.Form>- <modeFetcher.Form- action={path.to.root}- method="post"- onSubmit={() => {- document.body.removeAttribute("style");- }}- className="w-full"+ <BiSun />+ <Trans>Light</Trans>+ </RadioGroupButton>+ <RadioGroupButton+ value="dark"+ autoFocus={mode === "dark"}+ className={cn(+ "flex-1",+ mode == "dark" && "border-2 border-primary"+ )}>- <input type="hidden" name="mode" value="dark" />- <Button- variant="secondary"- leftIcon={<BiMoon />}- type="submit"- className={cn(- "w-full",- mode == "dark" && "border-2 border-primary"- )}- >- <Trans>Dark</Trans>- </Button>- </modeFetcher.Form>- </HStack>- <div className="w-full grid grid-cols-3 gap-4">+ <BiMoon />+ <Trans>Dark</Trans>+ </RadioGroupButton>+ </RadioGroup>+ <RadioGroup+ value={theme}+ onValueChange={(name) => {+ const selected = themes.find((entry) => entry.name === name);+ if (selected) onThemeChange(selected);+ }}+ aria-label={t`Theme`}+ className="w-full grid grid-cols-3 gap-4"+ >{themes.map((t) => {const isActive = theme === t.name;return (- <Button+ <RadioGroupButtonkey={t.name}- variant="secondary"- onClick={() => onThemeChange(t)}+ value={t.name}className={cn("justify-start",isActive && "border-2 border-primary"@@ -209,10 +204,10 @@ export default function OnboardingTheme() {{isActive && <RxCheck className="h-4 w-4 text-white" />}</span>{t.label}- </Button>+ </RadioGroupButton>);})}- </div>+ </RadioGroup></VStack></OnboardingCardContent><CardFooter>@@ -234,7 +229,7 @@ export default function OnboardingTheme() {<ButtonisLoading={transition.state !== "idle"}isDisabled={transition.state !== "idle"}- ref={nextRef}+ shortcut={ONBOARDING_SHORTCUTS.continue}onClick={onSubmit}><Trans>Next</Trans>diff --git a/apps/erp/app/routes/x+/_layout.tsx b/apps/erp/app/routes/x+/_layout.tsxindex f4ec9d685d..dfee79ea15 100644--- a/apps/erp/app/routes/x+/_layout.tsx+++ b/apps/erp/app/routes/x+/_layout.tsx@@ -59,6 +59,7 @@ import { RealtimeDataProvider } from "~/components";import { PrimaryNavigation, Topbar } from "~/components/Layout";import MfaEnrollmentRequired from "~/components/MfaEnrollmentRequired";import SessionLockOverlay from "~/components/SessionLockOverlay";+import ShortcutHelp from "~/components/ShortcutHelp";import { TimeCardWarning } from "~/components/TimeCardWarning";import TrainingPanel from "~/components/TrainingPanel";import { useIdle, usePermissions, useRecordRecentlyViewed } from "~/hooks";@@ -485,6 +486,7 @@ export default function AuthenticatedRoute() {onDismiss={dismiss}/><AgentRoot />+ <ShortcutHelp />{companySettings?.timeCardEnabled && (<Suspense fallback={null}><Await resolve={openClockEntry}>diff --git a/apps/erp/app/shortcuts.ts b/apps/erp/app/shortcuts.tsnew file mode 100644index 0000000000..68a1e7ee6c--- /dev/null+++ b/apps/erp/app/shortcuts.ts@@ -0,0 +1,85 @@+import type { ShortcutDefinition, ShortcutInput } from "@carbon/react";+import { SHORTCUTS } from "@carbon/react";++/**+ * Single source of truth for every ERP key combo (shared combos come from+ * `SHORTCUTS` in @carbon/react; MES has its own file). Components import+ * named constants — never write a combo string literal at a call site.+ */+export { SHORTCUTS };++/** Global search / go-to palette. */+export const searchShortcut: ShortcutDefinition = {+ key: "K",+ modifiers: ["mod"]+};++/**+ * Detail-page section tabs (⌘⇧<letter>), bound by DetailsTopbar/DetailSidebar+ * link definitions. Planning is N — P was silently double-bound to Purchasing+ * for years (the legacy record-based hook dropped duplicates).+ */+export const DETAIL_TAB_SHORTCUTS = {+ details: "mod+shift+d",+ /** Inventory item pages. */+ activity: "mod+shift+a",+ accounting: "mod+shift+a",+ purchasing: "mod+shift+p",+ planning: "mod+shift+n",+ inventory: "mod+shift+i",+ quality: "mod+shift+q",+ /** Item pages use X — S belongs to Shipping on the supplier/customer sidebars. */+ sales: "mod+shift+x",+ contacts: "mod+shift+c",+ locations: "mod+shift+l",+ payment: "mod+shift+p",+ tax: "mod+shift+t",+ shipping: "mod+shift+s",+ processes: "mod+shift+r"+} as const satisfies Record<string, ShortcutInput>;++/** Document-line explorer actions (Quote, SO, PO, invoices, procedures…). */+export const EXPLORER_SHORTCUTS = {+ addLine: "mod+shift+l",+ addAttribute: "mod+shift+a",+ addParameter: "mod+shift+p"+} as const satisfies Record<string, ShortcutInput>;++/**+ * Onboarding flow. Enter is the continue key — onboarding screens are+ * one-obvious-action (choice screens / simple steps), so the Next button+ * carries this via its `shortcut` prop and shows the ↵ badge.+ */+export const ONBOARDING_SHORTCUTS = {+ continue: "enter"+} as const satisfies Record<string, ShortcutInput>;++/** Table pagination. */+export const PAGINATION_SHORTCUTS = {+ previous: "arrowleft",+ next: "arrowright"+} as const satisfies Record<string, ShortcutInput>;++/**+ * g-then-letter module go-to, keyed by the stable module `key` from+ * useModules() — never by position, since module order and visibility are+ * per-user. `shopFloor` is an external MES link and deliberately absent.+ */+export const MODULE_GO_TO_PREFIX = "g";++export const MODULE_GO_TO: Record<string, string> = {+ accounting: "a",+ documents: "d",+ inventory: "i",+ invoicing: "v",+ parts: "t",+ people: "o",+ production: "r",+ purchasing: "p",+ quality: "q",+ resources: "u",+ sales: "s",+ settings: "e",+ users: "y",+ workflows: "w"+};diff --git a/apps/mes/app/components/AppSidebar.tsx b/apps/mes/app/components/AppSidebar.tsxindex 991493a209..4df1d43cda 100644--- a/apps/mes/app/components/AppSidebar.tsx+++ b/apps/mes/app/components/AppSidebar.tsx@@ -33,11 +33,12 @@ import {useDisclosure,useMode,useRouteData,+ useShortcutKeyMap,useSidebar} from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import type { ComponentProps } from "react";-import { Suspense, useRef } from "react";+import { Suspense, useMemo, useRef } from "react";import { BsFillHexagonFill } from "react-icons/bs";import {LuActivity,@@ -59,10 +60,18 @@ import {LuUsers,LuWrench} from "react-icons/lu";-import { Await, Form, Link, useFetcher, useLocation } from "react-router";+import {+ Await,+ Form,+ Link,+ useFetcher,+ useLocation,+ useNavigate+} from "react-router";import { useUser } from "~/hooks";import type { action } from "~/root";import type { Location } from "~/services/types";+import { MES_NAV_SHORTCUTS } from "~/shortcuts";import type { PinnedInUser } from "~/types";import { ERP_URL, path } from "~/utils/path";import { AdjustInventory } from "./AdjustInventory";@@ -193,6 +202,45 @@ export function OperationsNav({activeMaintenanceCount: number;}) {const { t } = useLingui();+ const navigate = useNavigate();++ // ⌥1–7 sidebar navigation (see ~/shortcuts). ⌘digits are browser-reserved.+ useShortcutKeyMap(+ useMemo(+ () => [+ {+ shortcut: MES_NAV_SHORTCUTS.operations,+ action: () => navigate(path.to.operations)+ },+ {+ shortcut: MES_NAV_SHORTCUTS.assigned,+ action: () => navigate(path.to.assigned)+ },+ {+ shortcut: MES_NAV_SHORTCUTS.active,+ action: () => navigate(path.to.active)+ },+ {+ shortcut: MES_NAV_SHORTCUTS.recent,+ action: () => navigate(path.to.recent)+ },+ {+ shortcut: MES_NAV_SHORTCUTS.jobs,+ action: () => navigate(path.to.jobs)+ },+ {+ shortcut: MES_NAV_SHORTCUTS.maintenance,+ action: () => navigate(path.to.maintenance)+ },+ {+ shortcut: MES_NAV_SHORTCUTS.picking,+ action: () => navigate(path.to.picking)+ }+ ],+ [navigate]+ )+ );+const links = [{title: t`Schedule`,diff --git a/apps/mes/app/components/JobOperation/components/Controls.tsx b/apps/mes/app/components/JobOperation/components/Controls.tsxindex 44002b7a7a..2f8648cf2f 100644--- a/apps/mes/app/components/JobOperation/components/Controls.tsx+++ b/apps/mes/app/components/JobOperation/components/Controls.tsx@@ -1,17 +1,19 @@import { Hidden, ValidatedForm } from "@carbon/form";import {cn,+ hasOpenDialog,ToggleGroup,ToggleGroupItem,Tooltip,TooltipContent,TooltipProvider,- TooltipTrigger+ TooltipTrigger,+ useShortcutKeys} from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import { AnimatePresence, motion } from "framer-motion";import type { ComponentProps, ReactNode } from "react";-import { useCallback, useMemo, useState } from "react";+import { forwardRef, useCallback, useMemo, useRef, useState } from "react";import { FaPause, FaPlay } from "react-icons/fa6";import {LuEllipsisVertical,@@ -28,6 +30,7 @@ import type {OperationWithDetails,ProductionEvent} from "~/services/types";+import { START_STOP_SHORTCUT } from "~/shortcuts";import { path } from "~/utils/path";export function Controls({@@ -70,20 +73,22 @@ export function Times({);}-export function ButtonWithTooltip({- tooltip,- children,- ...props-}: ComponentProps<"button"> & { tooltip: string }) {+export const ButtonWithTooltip = forwardRef<+ HTMLButtonElement,+ ComponentProps<"button"> & { tooltip: string }+>(({ tooltip, children, ...props }, ref) => {return (<Tooltip><TooltipTrigger>- <button {...props}>{children}</button>+ <button ref={ref} {...props}>+ {children}+ </button></TooltipTrigger><TooltipContent side="top">{tooltip}</TooltipContent></Tooltip>);-}+});+ButtonWithTooltip.displayName = "ButtonWithTooltip";export function IconButtonWithTooltip({icon,@@ -236,6 +241,21 @@ export function StartStopButton({}) {const fetcher = useFetcher<ProductionEvent>();+ // Space = Start/Pause, the most-pressed button in MES. Inert in inputs+ // (hook default) and under any open dialog. AssemblyView owns its own Space+ // handling on a separate route (assembly.$operationId) — the two never+ // co-mount. Ref-click so a disabled button stays a native no-op.+ const startStopRef = useRef<HTMLButtonElement>(null);+ useShortcutKeys({+ shortcut: START_STOP_SHORTCUT,+ action: (event) => {+ event.preventDefault();+ startStopRef.current?.click();+ },+ guard: () => !hasOpenDialog(),+ disabled: fetcher.state !== "idle"+ });+const isActive = useMemo(() => {if (fetcher.formData?.get("action") === "End") {return false;@@ -307,18 +327,30 @@ export function StartStopButton({<Hidden name="type" value={eventType} /><Hidden name="workCenterId" value={operation.workCenterId ?? undefined} />{isActive ? (- <PauseButton disabled={fetcher.state !== "idle"} type="submit" />+ <PauseButton+ ref={startStopRef}+ disabled={fetcher.state !== "idle"}+ type="submit"+ />) : (- <PlayButton disabled={fetcher.state !== "idle"} type="submit" />+ <PlayButton+ ref={startStopRef}+ disabled={fetcher.state !== "idle"}+ type="submit"+ />)}</ValidatedForm>);}-export function PauseButton({ className, ...props }: ComponentProps<"button">) {+export const PauseButton = forwardRef<+ HTMLButtonElement,+ ComponentProps<"button">+>(({ className, ...props }, ref) => {const { t } = useLingui();return (<ButtonWithTooltip+ ref={ref}{...props}tooltip={t`Pause`}className="group size-24 tall:size-32 flex flex-row items-center gap-2 justify-center bg-red-500 rounded-full shadow-lg hover:cursor-pointer hover:drop-shadow-xl hover:bg-red-600 hover:scale-105 transition-all text-accent disabled:bg-muted disabled:text-muted-foreground/80 text-4xl border-b-4 border-red-700 active:border-b-0 active:translate-y-1 disabled:bg-gray-500 disabled:hover:bg-gray-600 disabled:border-gray-700 disabled:text-white"@@ -326,12 +358,17 @@ export function PauseButton({ className, ...props }: ComponentProps<"button">) {<FaPause className="group-hover:scale-110" /></ButtonWithTooltip>);-}+});+PauseButton.displayName = "PauseButton";-export function PlayButton({ className, ...props }: ComponentProps<"button">) {+export const PlayButton = forwardRef<+ HTMLButtonElement,+ ComponentProps<"button">+>(({ className, ...props }, ref) => {const { t } = useLingui();return (<ButtonWithTooltip+ ref={ref}{...props}tooltip={t`Start`}className="group size-24 tall:size-32 flex flex-row items-center gap-2 justify-center bg-emerald-500 rounded-full shadow-lg hover:cursor-pointer hover:drop-shadow-xl hover:bg-emerald-600 hover:scale-105 transition-all text-accent disabled:bg-muted disabled:text-muted-foreground/80 text-4xl border-b-4 border-emerald-700 active:border-b-0 active:translate-y-1 disabled:bg-gray-500 disabled:hover:bg-gray-600 disabled:border-gray-700 disabled:text-white"@@ -339,7 +376,8 @@ export function PlayButton({ className, ...props }: ComponentProps<"button">) {<FaPlay className="group-hover:scale-110" /></ButtonWithTooltip>);-}+});+PlayButton.displayName = "PlayButton";export type FABItem = {icon: ReactNode;diff --git a/apps/mes/app/components/SessionLockOverlay.tsx b/apps/mes/app/components/SessionLockOverlay.tsxindex f533a0bbac..91d2047f36 100644--- a/apps/mes/app/components/SessionLockOverlay.tsx+++ b/apps/mes/app/components/SessionLockOverlay.tsx@@ -63,7 +63,7 @@ function UnlockCodeField({ result }: { result?: UnlockResult }) {if (result?.success === false) setCode("");}, [result, setCode]);- return <InputOTP name="code" label="" />;+ return <InputOTP name="code" label="" autoFocus />;}export default function SessionLockOverlay({@@ -193,6 +193,7 @@ export default function SessionLockOverlay({<UnlockCodeField result={fetcher.data} /><Submit+ hideShortcutKeysize="lg"className="w-full"withBlocker={false}diff --git a/apps/mes/app/components/ShortcutHelp.tsx b/apps/mes/app/components/ShortcutHelp.tsxnew file mode 100644index 0000000000..39a3f189fa--- /dev/null+++ b/apps/mes/app/components/ShortcutHelp.tsx@@ -0,0 +1,104 @@+import type { ShortcutHelpEntry } from "@carbon/react";+import { ShortcutHelpOverlay } from "@carbon/react";+import { useLingui } from "@lingui/react/macro";+import { useMemo } from "react";+import { MES_NAV_SHORTCUTS, SHORTCUTS, START_STOP_SHORTCUT } from "~/shortcuts";++/**+ * MES `?` help overlay. Every entry is built from the central shortcut+ * definitions in ~/shortcuts — never write a combo literal here.+ */+const ShortcutHelp = () => {+ const { t } = useLingui();++ const entries = useMemo<ShortcutHelpEntry[]>(() => {+ const general = t`General`;+ const navigation = t`Navigation`;+ const assembly = t`Assembly steps`;++ return [+ {+ shortcut: START_STOP_SHORTCUT,+ description: t`Start or pause the operation`,+ group: general+ },+ {+ shortcut: SHORTCUTS.save,+ description: t`Save the form you're editing`,+ group: general+ },+ {+ shortcut: SHORTCUTS.sidebarToggle,+ description: t`Toggle the sidebar`,+ group: general+ },+ {+ shortcut: SHORTCUTS.help,+ description: t`Show this overlay`,+ group: general+ },+ {+ shortcut: MES_NAV_SHORTCUTS.operations,+ description: t`Schedule`,+ group: navigation+ },+ {+ shortcut: MES_NAV_SHORTCUTS.assigned,+ description: t`Assigned`,+ group: navigation+ },+ {+ shortcut: MES_NAV_SHORTCUTS.active,+ description: t`Active`,+ group: navigation+ },+ {+ shortcut: MES_NAV_SHORTCUTS.recent,+ description: t`Recent`,+ group: navigation+ },+ {+ shortcut: MES_NAV_SHORTCUTS.jobs,+ description: t`Jobs`,+ group: navigation+ },+ {+ shortcut: MES_NAV_SHORTCUTS.maintenance,+ description: t`Maintenance`,+ group: navigation+ },+ {+ shortcut: MES_NAV_SHORTCUTS.picking,+ description: t`Picking`,+ group: navigation+ },+ // AssemblyView owns these bindings (apps/mes/app/components/AssemblyView.tsx);+ // they are listed here for discoverability.+ {+ shortcut: "enter",+ description: t`Mark the step done / record`,+ group: assembly+ },+ {+ shortcut: "arrowright",+ description: t`Next step`,+ group: assembly+ },+ {+ shortcut: "arrowleft",+ description: t`Previous step`,+ group: assembly+ }+ ];+ }, [t]);++ return (+ <ShortcutHelpOverlay+ title={t`Keyboard shortcuts`}+ entries={entries}+ emptyLabel={t`No shortcuts available on this page.`}+ />+ );+};++export default ShortcutHelp;diff --git a/apps/mes/app/routes/_public+/login.tsx b/apps/mes/app/routes/_public+/login.tsxindex 64b8a0ca3b..50e1dca3c3 100644--- a/apps/mes/app/routes/_public+/login.tsx+++ b/apps/mes/app/routes/_public+/login.tsx@@ -507,6 +507,7 @@ export default function LoginRoute() {<Inputname="email"label=""+ autoFocusplaceholder={t`Email Address`}autoComplete={hasPasskeyAuth ? "email webauthn" : "email"}/>@@ -514,6 +515,7 @@ export default function LoginRoute() {<SubmitisDisabled={fetcher.state !== "idle" || ssoLoading}isLoading={fetcher.state === "submitting" || ssoLoading}+ hideShortcutKeysize="lg"className="w-full"withBlocker={false}diff --git a/apps/mes/app/routes/_public+/mfa.tsx b/apps/mes/app/routes/_public+/mfa.tsxindex a83ce3e89c..4218c5bcf1 100644--- a/apps/mes/app/routes/_public+/mfa.tsx+++ b/apps/mes/app/routes/_public+/mfa.tsx@@ -142,7 +142,7 @@ function MfaCodeField({ result }: { result?: MfaResult }) {if (result?.success === false) setCode("");}, [result, setCode]);- return <InputOTP name="code" label="" />;+ return <InputOTP name="code" label="" autoFocus />;}export default function MfaRoute() {@@ -190,6 +190,7 @@ export default function MfaRoute() {<MfaCodeField result={fetcher.data} /><Submit+ hideShortcutKeysize="lg"className="w-full"withBlocker={false}diff --git a/apps/mes/app/routes/_public+/unlock.tsx b/apps/mes/app/routes/_public+/unlock.tsxindex ef66815975..768cd29bb2 100644--- a/apps/mes/app/routes/_public+/unlock.tsx+++ b/apps/mes/app/routes/_public+/unlock.tsx@@ -351,7 +351,7 @@ function UnlockCodeField({ result }: { result?: UnlockResult }) {if (result?.success === false) setCode("");}, [result, setCode]);- return <InputOTP name="code" label="" />;+ return <InputOTP name="code" label="" autoFocus />;}export default function UnlockRoute() {@@ -472,6 +472,7 @@ export default function UnlockRoute() {</p><UnlockCodeField result={fetcher.data} /><Submit+ hideShortcutKeysize="lg"className="w-full"withBlocker={false}diff --git a/apps/mes/app/routes/x+/_layout.tsx b/apps/mes/app/routes/x+/_layout.tsxindex c28b4a33b8..2ab5d38fa7 100644--- a/apps/mes/app/routes/x+/_layout.tsx+++ b/apps/mes/app/routes/x+/_layout.tsx@@ -60,6 +60,7 @@ import { ConsolePill } from "~/components/ConsolePill";import { PinInOverlay } from "~/components/PinInOverlay";import RealtimeDataProvider from "~/components/RealtimeDataProvider";import SessionLockOverlay from "~/components/SessionLockOverlay";+import ShortcutHelp from "~/components/ShortcutHelp";import { TimeCardWarning } from "~/components/TimeCardWarning";import { userContext } from "~/context";import { useIdle } from "~/hooks";@@ -481,6 +482,7 @@ export default function AuthenticatedRoute() {<div className="flex flex-1 flex-col min-w-0 overflow-hidden bg-card md:mt-2 md:mr-2 md:mb-2 md:rounded-2xl md:border md:border-border"><Outlet /></div>+ <ShortcutHelp />{timeCardEnabled && (<Suspense fallback={null}><Await resolve={openClockEntry}>diff --git a/apps/mes/app/shortcuts.ts b/apps/mes/app/shortcuts.tsnew file mode 100644index 0000000000..428c5ae2af--- /dev/null+++ b/apps/mes/app/shortcuts.ts@@ -0,0 +1,26 @@+import type { ShortcutInput } from "@carbon/react";+import { SHORTCUTS } from "@carbon/react";++/**+ * Single source of truth for every MES key combo (shared combos come from+ * `SHORTCUTS` in @carbon/react; the ERP has its own file). Components import+ * named constants — never write a combo string literal at a call site.+ *+ * MES is touch-first with barcode scanners that emit keystrokes, so bare+ * letters are avoided throughout.+ */+export { SHORTCUTS };++/** ⌥+digit — ⌘+digit is browser-reserved tab switching. Order matches AppSidebar. */+export const MES_NAV_SHORTCUTS = {+ operations: "alt+1",+ assigned: "alt+2",+ active: "alt+3",+ recent: "alt+4",+ jobs: "alt+5",+ maintenance: "alt+6",+ picking: "alt+7"+} as const satisfies Record<string, ShortcutInput>;++/** Start/Pause the job operation (the big round button). */+export const START_STOP_SHORTCUT: ShortcutInput = "space";diff --git a/packages/form/src/components/InputOTP.tsx b/packages/form/src/components/InputOTP.tsxindex 0aa16a7728..f53e88efdf 100644--- a/packages/form/src/components/InputOTP.tsx+++ b/packages/form/src/components/InputOTP.tsx@@ -16,6 +16,7 @@ import type { ValidationBehaviorOptions } from "../internal/getInputProps";type FormInputOTPProps = {name: string;label?: ReactNode;+ autoFocus?: boolean;isConfigured?: boolean;isOptional?: boolean;isRequired?: boolean;@@ -30,6 +31,7 @@ const InputOTP = forwardRef<HTMLInputElement, FormInputOTPProps>({name,label,+ autoFocus,isConfigured,isOptional,isRequired,@@ -95,6 +97,7 @@ const InputOTP = forwardRef<HTMLInputElement, FormInputOTPProps>(value={value}onChange={setValue}ref={ref}+ autoFocus={autoFocus}disabled={isDisabled}><InputOTPGroup>diff --git a/packages/form/src/components/Submit.tsx b/packages/form/src/components/Submit.tsxindex 0adc567ea7..a3cb64ebc6 100644--- a/packages/form/src/components/Submit.tsx+++ b/packages/form/src/components/Submit.tsx@@ -2,23 +2,36 @@ import { useFormState } from "@carbon/form";import type { ButtonProps } from "@carbon/react";import {Button,+ isEditableTarget,Modal,ModalContent,ModalDescription,ModalFooter,ModalHeader,- ModalTitle+ ModalTitle,+ SHORTCUTS} from "@carbon/react";import { Trans } from "@lingui/react/macro";-import { forwardRef } from "react";+import { forwardRef, useCallback, useEffect, useRef } from "react";import { useBlocker, useNavigation } from "react-router";import { useIsSubmitting } from "../hooks";import { useFormStateContext } from "../internal/formStateContext";+import {+ registerSubmitShortcut,+ shouldSubmitOnShortcut,+ submitShortcutCount,+ unregisterSubmitShortcut+} from "../internal/submitShortcutRegistry";import { useFormContext } from "../userFacingFormContext";-type SubmitProps = ButtonProps & {+type SubmitProps = Omit<ButtonProps, "shortcut"> & {formId?: string;withBlocker?: boolean;+ /**+ * Save shortcut — defaults to the shared ⌘/Ctrl+Enter binding, which fires+ * while typing in a field. `false` opts this Submit out entirely.+ */+ shortcut?: ButtonProps["shortcut"] | false;};export function DefaultDisabledSubmit({@@ -46,6 +59,7 @@ export const Submit = forwardRef<HTMLButtonElement, SubmitProps>(children,isDisabled: isDisabledProp,withBlocker = true,+ shortcut = SHORTCUTS.save,...props},ref@@ -59,6 +73,45 @@ export const Submit = forwardRef<HTMLButtonElement, SubmitProps>(const formState = useFormState(formId);const isTouched = Object.keys(formState.touchedFields).length > 0;+ const innerRef = useRef<HTMLButtonElement | null>(null);+ const setRefs = useCallback(+ (node: HTMLButtonElement | null) => {+ innerRef.current = node;+ if (typeof ref === "function") ref(node);+ else if (ref) ref.current = node;+ },+ [ref]+ );++ // The guard's sole-Submit fallback needs to know how many Submits are+ // active on screen; a mounted-but-invisible Submit still counts, which+ // fails safe (count > 1 → no-op).+ const shortcutActive =+ shortcut !== false && !(isDisabled || isSubmitting || !isIdle);+ useEffect(() => {+ if (!shortcutActive) return;+ const id = Symbol("submit-shortcut");+ registerSubmitShortcut(id);+ return () => unregisterSubmitShortcut(id);+ }, [shortcutActive]);++ // Focus-aware guard: submit the form being edited; never steal keys from+ // other editable surfaces (lesson .ai/lessons.md:373); on body-focus fire+ // only when this is the sole active Submit — ambiguity means no-op.+ const shortcutGuard = useCallback((_event: KeyboardEvent) => {+ const el = innerRef.current;+ if (!el) return false;+ const active = document.activeElement;+ const activeForm =+ active instanceof HTMLElement ? active.closest("form") : null;+ return shouldSubmitOnShortcut({+ ownForm: el.form,+ activeForm,+ activeIsEditable: isEditableTarget(active),+ activeSubmitCount: submitShortcutCount()+ });+ }, []);+const blocker = useBlocker(({ currentLocation, nextLocation }) =>withBlocker &&@@ -75,12 +128,14 @@ export const Submit = forwardRef<HTMLButtonElement, SubmitProps>(return (<><Button- ref={ref}+ ref={setRefs}form={formId}type="submit"disabled={isDisabled || isSubmitting}isLoading={isSubmitting}isDisabled={isDisabled || isSubmitting || !isIdle}+ shortcut={shortcut === false ? undefined : shortcut}+ shortcutGuard={shortcutGuard}{...props}>{children}diff --git a/packages/form/src/internal/submitShortcutRegistry.test.ts b/packages/form/src/internal/submitShortcutRegistry.test.tsnew file mode 100644index 0000000000..8ac5d968a2--- /dev/null+++ b/packages/form/src/internal/submitShortcutRegistry.test.ts@@ -0,0 +1,93 @@+import { describe, expect, it } from "vitest";+import {+ registerSubmitShortcut,+ shouldSubmitOnShortcut,+ submitShortcutCount,+ unregisterSubmitShortcut+} from "./submitShortcutRegistry";++const formA = {};+const formB = {};++describe("shouldSubmitOnShortcut (guard truth table)", () => {+ it("fires when focus is inside this Submit's own form", () => {+ expect(+ shouldSubmitOnShortcut({+ ownForm: formA,+ activeForm: formA,+ activeIsEditable: true,+ activeSubmitCount: 3+ })+ ).toBe(true);+ });++ it("no-ops when focus is inside another form", () => {+ expect(+ shouldSubmitOnShortcut({+ ownForm: formA,+ activeForm: formB,+ activeIsEditable: true,+ activeSubmitCount: 1+ })+ ).toBe(false);+ });++ it("no-ops when focus is in a formless editable (agent chat textarea)", () => {+ expect(+ shouldSubmitOnShortcut({+ ownForm: formA,+ activeForm: null,+ activeIsEditable: true,+ activeSubmitCount: 1+ })+ ).toBe(false);+ });++ it("fires on body focus when this is the sole active Submit", () => {+ expect(+ shouldSubmitOnShortcut({+ ownForm: formA,+ activeForm: null,+ activeIsEditable: false,+ activeSubmitCount: 1+ })+ ).toBe(true);+ });++ it("no-ops on body focus when several Submits are active", () => {+ expect(+ shouldSubmitOnShortcut({+ ownForm: formA,+ activeForm: null,+ activeIsEditable: false,+ activeSubmitCount: 2+ })+ ).toBe(false);+ });++ it("never fires for a Submit detached from any form when focus is in a form", () => {+ expect(+ shouldSubmitOnShortcut({+ ownForm: null,+ activeForm: formB,+ activeIsEditable: true,+ activeSubmitCount: 1+ })+ ).toBe(false);+ });+});++describe("submit shortcut registry", () => {+ it("counts registrations and drops them on unregister", () => {+ const a = Symbol("a");+ const b = Symbol("b");+ const base = submitShortcutCount();+ registerSubmitShortcut(a);+ registerSubmitShortcut(b);+ expect(submitShortcutCount()).toBe(base + 2);+ unregisterSubmitShortcut(a);+ expect(submitShortcutCount()).toBe(base + 1);+ unregisterSubmitShortcut(b);+ expect(submitShortcutCount()).toBe(base);+ });+});diff --git a/packages/form/src/internal/submitShortcutRegistry.ts b/packages/form/src/internal/submitShortcutRegistry.tsnew file mode 100644index 0000000000..03556033e4--- /dev/null+++ b/packages/form/src/internal/submitShortcutRegistry.ts@@ -0,0 +1,39 @@+/**+ * Count of Submit buttons currently mounted with an ACTIVE save shortcut.+ * The focus-aware guard uses `count === 1` to decide whether the no-focus+ * fallback may fire — ambiguity (2+) means no-op, never "submit them all".+ * Module-level because the shortcut is a document-level concern; only touched+ * from effects, so it never runs during SSR.+ */+const registry = new Set<symbol>();++export function registerSubmitShortcut(id: symbol) {+ registry.add(id);+}++export function unregisterSubmitShortcut(id: symbol) {+ registry.delete(id);+}++export function submitShortcutCount() {+ return registry.size;+}++/**+ * Pure decision core for the save-shortcut guard — exported for tests.+ * Truth table (see the spec's acceptance criteria):+ * - focus inside a form → fire only for that form's Submit+ * - focus in any other editable surface (agent chat textarea, ProseMirror…) → never+ * - focus on a non-editable element/body → fire only the sole active Submit+ */+export function shouldSubmitOnShortcut(args: {+ ownForm: object | null;+ activeForm: object | null;+ activeIsEditable: boolean;+ activeSubmitCount: number;+}): boolean {+ const { ownForm, activeForm, activeIsEditable, activeSubmitCount } = args;+ if (activeForm) return activeForm === ownForm && ownForm !== null;+ if (activeIsEditable) return false;+ return activeSubmitCount === 1;+}diff --git a/packages/locale/locales/de/erp.po b/packages/locale/locales/de/erp.poindex 949dddfc78..d595543991 100644--- a/packages/locale/locales/de/erp.po+++ b/packages/locale/locales/de/erp.po@@ -1143,6 +1143,9 @@ msgstr "Benutzerdefinierten Preiszeile hinzufügen, um Menge, Preis, Versand, Bemsgid "Add a domain"msgstr "Domäne hinzufügen"+msgid "Add a line (in document explorers)"+msgstr "Eine Position hinzufügen (in Dokument-Explorern)"+msgid "Add a materials section that lists each item on the bill of materials with its quantity."msgstr "Materialien-Abschnitt hinzufügen, der jeden Artikel auf der Stückliste mit seiner Menge auflistet."@@ -3616,6 +3619,9 @@ msgstr "Bestätigen {0}"msgid "Confirm & release"msgstr "Bestätigen & Freigeben"+msgid "Confirm a dialog"+msgstr "Dialog bestätigen"+msgid "Confirm all"msgstr "Alle bestätigen"@@ -7637,6 +7643,9 @@ msgstr "Gehe zu {0}"msgid "Go to implementation hub"msgstr "Zum Umsetzungs-Hub gehen"+msgid "Go to module"+msgstr "Zum Modul wechseln"+msgid "Go to that week"msgstr "Gehe zu dieser Woche"@@ -8701,6 +8710,9 @@ msgstr "Journalzeilen"msgid "Journals dated on or before this date are treated as locked. Merged with the provider-reported lock date when both exist."msgstr "Buchungssätze mit Datum an oder vor diesem Datum werden als gesperrt behandelt. Sie werden mit dem vom Anbieter gemeldeten Sperrdatum zusammengeführt, falls beide vorhanden sind."+msgid "Jump to a section on detail pages (⇧⌘ + the section's letter)"+msgstr "Zu einem Abschnitt auf Detailseiten springen (⇧⌘ + Buchstabe des Abschnitts)"+msgid "Just one"msgstr "Nur eine"@@ -8743,6 +8755,9 @@ msgstr "Schützt Bestellungen, Angebote und Einstellungen durch eine zweite Übemsgid "Key"msgstr "Schlüssel"+msgid "Keyboard shortcuts"+msgstr "Tastenkombinationen"+msgid "Kind of record"msgstr "Art des Datensatzes"@@ -8966,6 +8981,9 @@ msgstr "Hell"msgid "Light Mode"msgstr "Hellmodus"+msgid "Light or dark mode"+msgstr "Helles oder dunkles Design"+msgid "Lights Out (24×7)"msgstr "Lichter aus (24×7)"@@ -10135,6 +10153,9 @@ msgstr "Neue Angebotsposition"msgid "New Receipt"msgstr "Neue Quittung"+msgid "New record (on list pages)"+msgstr "Neuer Datensatz (auf Listenseiten)"+msgid "New record created"msgstr "Neuer Datensatz erstellt"@@ -10258,6 +10279,9 @@ msgstr "Nächstes Fälligkeitsdatum"msgid "Next page"msgstr "Nächste Seite"+msgid "Next page (in tables)"+msgstr "Nächste Seite (in Tabellen)"+msgid "Next Sequence"msgstr "Nächster Nummernkreis"@@ -10652,6 +10676,9 @@ msgstr "Keine eingeplante Arbeit in diesem Zeitfenster"msgid "No shifts configured — assuming Mon–Fri, 8h days"msgstr "Keine Schichten konfiguriert — angenommen Mo–Fr, 8h Tage"+msgid "No shortcuts available on this page."+msgstr "Auf dieser Seite sind keine Tastenkombinationen verfügbar."+msgid "No single, trusted number for inventory or job status"msgstr "Keine einzige, vertrauenswürdige Zahl für Bestand oder Auftragsstatus"@@ -12014,6 +12041,9 @@ msgstr "Vorheriger Tag"msgid "Previous page"msgstr "Vorherige Seite"+msgid "Previous page (in tables)"+msgstr "Vorherige Seite (in Tabellen)"+msgid "Previous step"msgstr "Vorheriger Schritt"@@ -13840,6 +13870,9 @@ msgstr "Methode speichern"msgid "Save Rate"msgstr "Kurs speichern"+msgid "Save the form you're editing"+msgstr "Das bearbeitete Formular speichern"+msgid "Save view"msgstr "Ansicht speichern"@@ -14710,6 +14743,9 @@ msgstr "Lieferanten-IDs anzeigen"msgid "Show sync options"msgstr "Synchronisierungsoptionen anzeigen"+msgid "Show this overlay"+msgstr "Dieses Overlay anzeigen"+msgid "Show Trailing Zeros"msgstr "Nachgestellte Nullen anzeigen"@@ -16947,6 +16983,9 @@ msgstr "Ebene umschalten"msgid "Toggle Properties"msgstr "Eigenschaften umschalten"+msgid "Toggle the sidebar"+msgstr "Seitenleiste umschalten"+msgid "Toggle views"msgstr "Ansichten umschalten"diff --git a/packages/locale/locales/de/mes.po b/packages/locale/locales/de/mes.poindex 363d491819..61e51bf51d 100644--- a/packages/locale/locales/de/mes.po+++ b/packages/locale/locales/de/mes.po@@ -138,6 +138,9 @@ msgstr "Sind Sie sicher, dass Sie diesen Arbeitsgang beenden möchten? Dies beenmsgid "Are you sure you want to leave this page?"msgstr "Möchten Sie diese Seite wirklich verlassen?"+msgid "Assembly steps"+msgstr "Montageschritte"+msgid "Assigned"msgstr "Zugewiesen"@@ -536,6 +539,9 @@ msgstr "Mit nicht gepicktem Material abschließen?"msgid "Forgot to Clock Out?"msgstr "Vergessen auszustempeln?"+msgid "General"+msgstr "Allgemein"+msgid "Go back to operation"msgstr "Zurück zur Operation"@@ -633,6 +639,9 @@ msgstr "Fertigungsaufträge"msgid "Keep picking"msgstr "Kommissionierung fortsetzen"+msgid "Keyboard shortcuts"+msgstr "Tastaturkürzel"+msgid "Kit"msgstr "Set"@@ -723,6 +732,9 @@ msgstr "Artikel manuell aus dem Bestand entfernen"msgid "Mark Short"msgstr "Als kurz markieren"+msgid "Mark the step done / record"+msgstr "Schritt als erledigt markieren / aufzeichnen"+msgid "matches"msgstr "entspricht"@@ -766,6 +778,9 @@ msgstr "Meine Stunden"msgid "Name"msgstr "Name"+msgid "Navigation"+msgstr "Navigation"+msgid "New"msgstr "Neu"@@ -778,6 +793,9 @@ msgstr "Neueste zuerst"msgid "Next"msgstr "Weiter"+msgid "Next step"+msgstr "Nächster Schritt"+msgid "No"msgstr "Nein"@@ -874,6 +892,9 @@ msgstr "Keine Seriennummern"msgid "No serial numbers found"msgstr "Keine Seriennummern gefunden"+msgid "No shortcuts available on this page."+msgstr "Auf dieser Seite sind keine Tastaturkürzel verfügbar."+msgid "No spare parts added yet"msgstr "Noch keine Ersatzteile hinzugefügt"@@ -1025,6 +1046,9 @@ msgstr "Zurück"msgid "Preventive"msgstr "Vorbeugend"+msgid "Previous step"+msgstr "Vorheriger Schritt"+msgid "Print"msgstr "Drucken"@@ -1130,6 +1154,9 @@ msgstr "Kundenauftrag"msgid "Save"msgstr "Speichern"+msgid "Save the form you're editing"+msgstr "Speichern Sie das Formular, das Sie bearbeiten"+msgid "Scan"msgstr "Scannen"@@ -1286,6 +1313,9 @@ msgstr "Fehlbestand"msgid "Short pick {itemName}"msgstr "Kurzkommissionierung {itemName}"+msgid "Show this overlay"+msgstr "Dieses Overlay anzeigen"+msgid "Sign in with Google"msgstr "Mit Google anmelden"@@ -1322,6 +1352,9 @@ msgstr "Verwendete Ersatzteile"msgid "Start"msgstr "Start"+msgid "Start or pause the operation"+msgstr "Arbeitsgang starten oder unterbrechen"+msgid "Station User"msgstr "Stationsbenutzer"@@ -1408,6 +1441,9 @@ msgstr "Arbeitszeit: {0}"msgid "Today"msgstr "Heute"+msgid "Toggle the sidebar"+msgstr "Seitenleiste ein-/ausblenden"+msgid "Tools"msgstr "Werkzeuge"diff --git a/packages/locale/locales/en/erp.po b/packages/locale/locales/en/erp.poindex d12148643d..49a7954b6f 100644--- a/packages/locale/locales/en/erp.po+++ b/packages/locale/locales/en/erp.po@@ -1143,6 +1143,9 @@ msgstr "Add a custom pricing row to override quantity, price, shipping, lead timmsgid "Add a domain"msgstr "Add a domain"+msgid "Add a line (in document explorers)"+msgstr "Add a line (in document explorers)"+msgid "Add a materials section that lists each item on the bill of materials with its quantity."msgstr "Add a materials section that lists each item on the bill of materials with its quantity."@@ -3616,6 +3619,9 @@ msgstr "Confirm {0}"msgid "Confirm & release"msgstr "Confirm & release"+msgid "Confirm a dialog"+msgstr "Confirm a dialog"+msgid "Confirm all"msgstr "Confirm all"@@ -7637,6 +7643,9 @@ msgstr "Go to {0}"msgid "Go to implementation hub"msgstr "Go to implementation hub"+msgid "Go to module"+msgstr "Go to module"+msgid "Go to that week"msgstr "Go to that week"@@ -8701,6 +8710,9 @@ msgstr "Journal lines"msgid "Journals dated on or before this date are treated as locked. Merged with the provider-reported lock date when both exist."msgstr "Journals dated on or before this date are treated as locked. Merged with the provider-reported lock date when both exist."+msgid "Jump to a section on detail pages (⇧⌘ + the section's letter)"+msgstr "Jump to a section on detail pages (⇧⌘ + the section's letter)"+msgid "Just one"msgstr "Just one"@@ -8743,6 +8755,9 @@ msgstr "Keeps orders, quotes, and settings behind a second check"msgid "Key"msgstr "Key"+msgid "Keyboard shortcuts"+msgstr "Keyboard shortcuts"+msgid "Kind of record"msgstr "Kind of record"@@ -8966,6 +8981,9 @@ msgstr "Light"msgid "Light Mode"msgstr "Light Mode"+msgid "Light or dark mode"+msgstr "Light or dark mode"+msgid "Lights Out (24×7)"msgstr "Lights Out (24×7)"@@ -10135,6 +10153,9 @@ msgstr "New Quote Line"msgid "New Receipt"msgstr "New Receipt"+msgid "New record (on list pages)"+msgstr "New record (on list pages)"+msgid "New record created"msgstr "New record created"@@ -10258,6 +10279,9 @@ msgstr "Next Due Date"msgid "Next page"msgstr "Next page"+msgid "Next page (in tables)"+msgstr "Next page (in tables)"+msgid "Next Sequence"msgstr "Next Sequence"@@ -10652,6 +10676,9 @@ msgstr "No scheduled work in this window"msgid "No shifts configured — assuming Mon–Fri, 8h days"msgstr "No shifts configured — assuming Mon–Fri, 8h days"+msgid "No shortcuts available on this page."+msgstr "No shortcuts available on this page."+msgid "No single, trusted number for inventory or job status"msgstr "No single, trusted number for inventory or job status"@@ -12014,6 +12041,9 @@ msgstr "Previous Day"msgid "Previous page"msgstr "Previous page"+msgid "Previous page (in tables)"+msgstr "Previous page (in tables)"+msgid "Previous step"msgstr "Previous step"@@ -13840,6 +13870,9 @@ msgstr "Save Method"msgid "Save Rate"msgstr "Save Rate"+msgid "Save the form you're editing"+msgstr "Save the form you're editing"+msgid "Save view"msgstr "Save view"@@ -14710,6 +14743,9 @@ msgstr "Show Supplier IDs"msgid "Show sync options"msgstr "Show sync options"+msgid "Show this overlay"+msgstr "Show this overlay"+msgid "Show Trailing Zeros"msgstr "Show Trailing Zeros"@@ -16947,6 +16983,9 @@ msgstr "Toggle level"msgid "Toggle Properties"msgstr "Toggle Properties"+msgid "Toggle the sidebar"+msgstr "Toggle the sidebar"+msgid "Toggle views"msgstr "Toggle views"diff --git a/packages/locale/locales/en/mes.po b/packages/locale/locales/en/mes.poindex b2c899b3f3..282372dba3 100644--- a/packages/locale/locales/en/mes.po+++ b/packages/locale/locales/en/mes.po@@ -138,6 +138,9 @@ msgstr "Are you sure you want to finish this operation? This will end all activemsgid "Are you sure you want to leave this page?"msgstr "Are you sure you want to leave this page?"+msgid "Assembly steps"+msgstr "Assembly steps"+msgid "Assigned"msgstr "Assigned"@@ -536,6 +539,9 @@ msgstr "Finish with material unpicked?"msgid "Forgot to Clock Out?"msgstr "Forgot to Clock Out?"+msgid "General"+msgstr "General"+msgid "Go back to operation"msgstr "Go back to operation"@@ -633,6 +639,9 @@ msgstr "Jobs"msgid "Keep picking"msgstr "Keep picking"+msgid "Keyboard shortcuts"+msgstr "Keyboard shortcuts"+msgid "Kit"msgstr "Kit"@@ -723,6 +732,9 @@ msgstr "Manually remove items from inventory"msgid "Mark Short"msgstr "Mark Short"+msgid "Mark the step done / record"+msgstr "Mark the step done / record"+msgid "matches"msgstr "matches"@@ -766,6 +778,9 @@ msgstr "My Hours"msgid "Name"msgstr "Name"+msgid "Navigation"+msgstr "Navigation"+msgid "New"msgstr "New"@@ -778,6 +793,9 @@ msgstr "Newest first"msgid "Next"msgstr "Next"+msgid "Next step"+msgstr "Next step"+msgid "No"msgstr "No"@@ -874,6 +892,9 @@ msgstr "No serial numbers"msgid "No serial numbers found"msgstr "No serial numbers found"+msgid "No shortcuts available on this page."+msgstr "No shortcuts available on this page."+msgid "No spare parts added yet"msgstr "No spare parts added yet"@@ -1025,6 +1046,9 @@ msgstr "Prev"msgid "Preventive"msgstr "Preventive"+msgid "Previous step"+msgstr "Previous step"+msgid "Print"msgstr "Print"@@ -1130,6 +1154,9 @@ msgstr "Sales Order"msgid "Save"msgstr "Save"+msgid "Save the form you're editing"+msgstr "Save the form you're editing"+msgid "Scan"msgstr "Scan"@@ -1286,6 +1313,9 @@ msgstr "Short"msgid "Short pick {itemName}"msgstr "Short pick {itemName}"+msgid "Show this overlay"+msgstr "Show this overlay"+msgid "Sign in with Google"msgstr "Sign in with Google"@@ -1322,6 +1352,9 @@ msgstr "Spare Parts Used"msgid "Start"msgstr "Start"+msgid "Start or pause the operation"+msgstr "Start or pause the operation"+msgid "Station User"msgstr "Station User"@@ -1408,6 +1441,9 @@ msgstr "Time Worked: {0}"msgid "Today"msgstr "Today"+msgid "Toggle the sidebar"+msgstr "Toggle the sidebar"+msgid "Tools"msgstr "Tools"diff --git a/packages/locale/locales/es/erp.po b/packages/locale/locales/es/erp.poindex 63fd3866b6..2069817f81 100644--- a/packages/locale/locales/es/erp.po+++ b/packages/locale/locales/es/erp.po@@ -1143,6 +1143,9 @@ msgstr "Agregue una fila de fijación de precios personalizada para sobrescribirmsgid "Add a domain"msgstr "Añadir un dominio"+msgid "Add a line (in document explorers)"+msgstr "Agregar una línea (en exploradores de documentos)"+msgid "Add a materials section that lists each item on the bill of materials with its quantity."msgstr "Agregue una sección de materiales que enumere cada artículo en la lista de materiales con su cantidad."@@ -3616,6 +3619,9 @@ msgstr "Confirmar {0}"msgid "Confirm & release"msgstr "Confirmar y liberar"+msgid "Confirm a dialog"+msgstr "Confirmar un diálogo"+msgid "Confirm all"msgstr "Confirmar todo"@@ -7637,6 +7643,9 @@ msgstr "Ir a {0}"msgid "Go to implementation hub"msgstr "Ir al centro de implementación"+msgid "Go to module"+msgstr "Ir al módulo"+msgid "Go to that week"msgstr "Ir a esa semana"@@ -8701,6 +8710,9 @@ msgstr "Líneas de asiento"msgid "Journals dated on or before this date are treated as locked. Merged with the provider-reported lock date when both exist."msgstr "Los asientos fechados en o antes de esta fecha se tratan como bloqueados. Se combinan con la fecha de bloqueo reportada por el proveedor cuando ambas existen."+msgid "Jump to a section on detail pages (⇧⌘ + the section's letter)"+msgstr "Ir a una sección en páginas de detalle (⇧⌘ + la letra de la sección)"+msgid "Just one"msgstr "Solo uno"@@ -8743,6 +8755,9 @@ msgstr "Mantiene órdenes, cotizaciones y configuración tras una segunda verifimsgid "Key"msgstr "Clave"+msgid "Keyboard shortcuts"+msgstr "Atajos de teclado"+msgid "Kind of record"msgstr "Tipo de registro"@@ -8966,6 +8981,9 @@ msgstr "Claro"msgid "Light Mode"msgstr "Modo Claro"+msgid "Light or dark mode"+msgstr "Modo claro u oscuro"+msgid "Lights Out (24×7)"msgstr "Sin luces (24×7)"@@ -10135,6 +10153,9 @@ msgstr "Nueva Línea de Cotización"msgid "New Receipt"msgstr "Nuevo Recibo"+msgid "New record (on list pages)"+msgstr "Nuevo registro (en páginas de lista)"+msgid "New record created"msgstr "Nuevo registro creado"@@ -10258,6 +10279,9 @@ msgstr "Próxima fecha de vencimiento"msgid "Next page"msgstr "Página siguiente"+msgid "Next page (in tables)"+msgstr "Página siguiente (en tablas)"+msgid "Next Sequence"msgstr "Siguiente Secuencia"@@ -10652,6 +10676,9 @@ msgstr "Sin trabajo programado en esta ventana"msgid "No shifts configured — assuming Mon–Fri, 8h days"msgstr "Sin turnos configurados — asumiendo lun–vie, días de 8h"+msgid "No shortcuts available on this page."+msgstr "No hay atajos disponibles en esta página."+msgid "No single, trusted number for inventory or job status"msgstr "Sin un único número confiable para inventario o estado del trabajo"@@ -12014,6 +12041,9 @@ msgstr "Día Anterior"msgid "Previous page"msgstr "Página anterior"+msgid "Previous page (in tables)"+msgstr "Página anterior (en tablas)"+msgid "Previous step"msgstr "Paso anterior"@@ -13840,6 +13870,9 @@ msgstr "Guardar Método"msgid "Save Rate"msgstr "Guardar tipo de cambio"+msgid "Save the form you're editing"+msgstr "Guardar el formulario que estás editando"+msgid "Save view"msgstr "Guardar vista"@@ -14710,6 +14743,9 @@ msgstr "Mostrar IDs de Proveedores"msgid "Show sync options"msgstr "Mostrar opciones de sincronización"+msgid "Show this overlay"+msgstr "Mostrar esta superposición"+msgid "Show Trailing Zeros"msgstr "Mostrar Ceros Finales"@@ -16947,6 +16983,9 @@ msgstr "Alternar nivel"msgid "Toggle Properties"msgstr "Alternar Propiedades"+msgid "Toggle the sidebar"+msgstr "Alternar la barra lateral"+msgid "Toggle views"msgstr "Alternar vistas"diff --git a/packages/locale/locales/es/mes.po b/packages/locale/locales/es/mes.poindex 4c42200aa0..949e0ce6e7 100644--- a/packages/locale/locales/es/mes.po+++ b/packages/locale/locales/es/mes.po@@ -138,6 +138,9 @@ msgstr "¿Está seguro de que desea finalizar esta operación? Esto terminará tmsgid "Are you sure you want to leave this page?"msgstr "¿Estás seguro de que quieres salir de esta página?"+msgid "Assembly steps"+msgstr "Pasos de montaje"+msgid "Assigned"msgstr "Asignado"@@ -536,6 +539,9 @@ msgstr "¿Finalizar con material sin recoger?"msgid "Forgot to Clock Out?"msgstr "¿Olvidó fichar salida?"+msgid "General"+msgstr "General"+msgid "Go back to operation"msgstr "Volver a la operación"@@ -633,6 +639,9 @@ msgstr "Órdenes de trabajo"msgid "Keep picking"msgstr "Continuar picking"+msgid "Keyboard shortcuts"+msgstr "Atajos de teclado"+msgid "Kit"msgstr "Kit"@@ -723,6 +732,9 @@ msgstr "Quitar manualmente artículos del inventario"msgid "Mark Short"msgstr "Marcar como faltante"+msgid "Mark the step done / record"+msgstr "Marcar el paso como hecho / registrar"+msgid "matches"msgstr "coincide con"@@ -766,6 +778,9 @@ msgstr "Mis horas"msgid "Name"msgstr "Nombre"+msgid "Navigation"+msgstr "Navegación"+msgid "New"msgstr "Nuevo"@@ -778,6 +793,9 @@ msgstr "Más reciente primero"msgid "Next"msgstr "Siguiente"+msgid "Next step"+msgstr "Siguiente paso"+msgid "No"msgstr "No"@@ -874,6 +892,9 @@ msgstr "Sin números de serie"msgid "No serial numbers found"msgstr "No se encontraron números de serie"+msgid "No shortcuts available on this page."+msgstr "No hay atajos disponibles en esta página."+msgid "No spare parts added yet"msgstr "Aún no se han agregado repuestos"@@ -1025,6 +1046,9 @@ msgstr "Anterior"msgid "Preventive"msgstr "Preventivo"+msgid "Previous step"+msgstr "Paso anterior"+msgid "Print"msgstr "Imprimir"@@ -1130,6 +1154,9 @@ msgstr "Pedido de venta"msgid "Save"msgstr "Guardar"+msgid "Save the form you're editing"+msgstr "Guardar el formulario que estás editando"+msgid "Scan"msgstr "Escanear"@@ -1286,6 +1313,9 @@ msgstr "Faltante"msgid "Short pick {itemName}"msgstr "Picking corto {itemName}"+msgid "Show this overlay"+msgstr "Mostrar esta superposición"+msgid "Sign in with Google"msgstr "Iniciar sesión con Google"@@ -1322,6 +1352,9 @@ msgstr "Repuestos utilizados"msgid "Start"msgstr "Iniciar"+msgid "Start or pause the operation"+msgstr "Iniciar o pausar la operación"+msgid "Station User"msgstr "Usuario de estación"@@ -1408,6 +1441,9 @@ msgstr "Tiempo trabajado: {0}"msgid "Today"msgstr "Hoy"+msgid "Toggle the sidebar"+msgstr "Alternar la barra lateral"+msgid "Tools"msgstr "Herramientas"diff --git a/packages/locale/locales/fr/erp.po b/packages/locale/locales/fr/erp.poindex d3cf285acc..e11b6ab694 100644--- a/packages/locale/locales/fr/erp.po+++ b/packages/locale/locales/fr/erp.po@@ -1143,6 +1143,9 @@ msgstr "Ajouter une ligne de Tarification personnalisée pour substituer Quantitmsgid "Add a domain"msgstr "Ajouter un domaine"+msgid "Add a line (in document explorers)"+msgstr "Ajouter une ligne (dans les explorateurs de documents)"+msgid "Add a materials section that lists each item on the bill of materials with its quantity."msgstr "Ajouter une section de matériaux qui liste chaque article de la nomenclature avec sa quantité."@@ -3616,6 +3619,9 @@ msgstr "Confirmer {0}"msgid "Confirm & release"msgstr "Confirmer et lancer"+msgid "Confirm a dialog"+msgstr "Confirmer une boîte de dialogue"+msgid "Confirm all"msgstr "Confirmer tout"@@ -7637,6 +7643,9 @@ msgstr "Aller à {0}"msgid "Go to implementation hub"msgstr "Aller au centre de mise en œuvre"+msgid "Go to module"+msgstr "Aller au module"+msgid "Go to that week"msgstr "Aller à cette semaine"@@ -8701,6 +8710,9 @@ msgstr "Lignes d'écriture"msgid "Journals dated on or before this date are treated as locked. Merged with the provider-reported lock date when both exist."msgstr "Les écritures datées de cette date ou antérieures sont traitées comme verrouillées. Fusionnées avec la date de verrouillage signalée par le fournisseur lorsque les deux existent."+msgid "Jump to a section on detail pages (⇧⌘ + the section's letter)"+msgstr "Accéder à une section sur les pages de détails (⇧⌘ + la lettre de la section)"+msgid "Just one"msgstr "Un seul"@@ -8743,6 +8755,9 @@ msgstr "Garde les commandes, les devis et les paramètres derrière une deuxièmmsgid "Key"msgstr "Clé"+msgid "Keyboard shortcuts"+msgstr "Raccourcis clavier"+msgid "Kind of record"msgstr "Type d'enregistrement"@@ -8966,6 +8981,9 @@ msgstr "Clair"msgid "Light Mode"msgstr "Mode Clair"+msgid "Light or dark mode"+msgstr "Mode clair ou sombre"+msgid "Lights Out (24×7)"msgstr "Lumières éteintes (24×7)"@@ -10135,6 +10153,9 @@ msgstr "Nouvelle Ligne de Devis"msgid "New Receipt"msgstr "Nouveau reçu"+msgid "New record (on list pages)"+msgstr "Nouvel enregistrement (sur les pages de liste)"+msgid "New record created"msgstr "Nouvel enregistrement créé"@@ -10258,6 +10279,9 @@ msgstr "Prochaine date d'échéance"msgid "Next page"msgstr "Page suivante"+msgid "Next page (in tables)"+msgstr "Page suivante (dans les tableaux)"+msgid "Next Sequence"msgstr "Séquence suivante"@@ -10652,6 +10676,9 @@ msgstr "Aucun travail prévu dans cette fenêtre"msgid "No shifts configured — assuming Mon–Fri, 8h days"msgstr "Aucun quart configuré — hypothèse lun–ven, jours de 8h"+msgid "No shortcuts available on this page."+msgstr "Aucun raccourci disponible sur cette page."+msgid "No single, trusted number for inventory or job status"msgstr "Pas de chiffre unique et fiable pour l'inventaire ou le statut du travail"@@ -12014,6 +12041,9 @@ msgstr "Jour précédent"msgid "Previous page"msgstr "Page précédente"+msgid "Previous page (in tables)"+msgstr "Page précédente (dans les tableaux)"+msgid "Previous step"msgstr "Étape précédente"@@ -13840,6 +13870,9 @@ msgstr "Enregistrer la méthode"msgid "Save Rate"msgstr "Enregistrer le taux"+msgid "Save the form you're editing"+msgstr "Enregistrer le formulaire que vous modifiez"+msgid "Save view"msgstr "Enregistrer la vue"@@ -14710,6 +14743,9 @@ msgstr "Afficher les ID fournisseur"msgid "Show sync options"msgstr "Afficher les options de synchronisation"+msgid "Show this overlay"+msgstr "Afficher cette fenêtre superposée"+msgid "Show Trailing Zeros"msgstr "Afficher les zéros de fin"@@ -16947,6 +16983,9 @@ msgstr "Basculer le niveau"msgid "Toggle Properties"msgstr "Basculer les propriétés"+msgid "Toggle the sidebar"+msgstr "Activer/désactiver la barre latérale"+msgid "Toggle views"msgstr "Basculer les vues"diff --git a/packages/locale/locales/fr/mes.po b/packages/locale/locales/fr/mes.poindex 72bebf3823..0f8db47e13 100644--- a/packages/locale/locales/fr/mes.po+++ b/packages/locale/locales/fr/mes.po@@ -138,6 +138,9 @@ msgstr "Êtes-vous sûr de vouloir terminer cette opération ? Cela mettra finmsgid "Are you sure you want to leave this page?"msgstr "Êtes-vous sûr de vouloir quitter cette page ?"+msgid "Assembly steps"+msgstr "Étapes d'assemblage"+msgid "Assigned"msgstr "Assigné"@@ -536,6 +539,9 @@ msgstr "Terminer avec du matériel non prélevé?"msgid "Forgot to Clock Out?"msgstr "Avez-vous oublié le pointage fin ?"+msgid "General"+msgstr "Général"+msgid "Go back to operation"msgstr "Revenir à l'opération"@@ -633,6 +639,9 @@ msgstr "Ordres de fabrication"msgid "Keep picking"msgstr "Continuer le prélèvement"+msgid "Keyboard shortcuts"+msgstr "Raccourcis clavier"+msgid "Kit"msgstr "Kit"@@ -723,6 +732,9 @@ msgstr "Retirer manuellement des articles du stock"msgid "Mark Short"msgstr "Marquer comme manquant"+msgid "Mark the step done / record"+msgstr "Marquer l'étape comme faite / enregistrer"+msgid "matches"msgstr "correspond à"@@ -766,6 +778,9 @@ msgstr "Mes heures"msgid "Name"msgstr "Nom"+msgid "Navigation"+msgstr "Navigation"+msgid "New"msgstr "Nouveau"@@ -778,6 +793,9 @@ msgstr "Plus récent d'abord"msgid "Next"msgstr "Suivant"+msgid "Next step"+msgstr "Étape suivante"+msgid "No"msgstr "Non"@@ -874,6 +892,9 @@ msgstr "Aucun numéro de série"msgid "No serial numbers found"msgstr "Aucun numéro de série trouvé"+msgid "No shortcuts available on this page."+msgstr "Aucun raccourci disponible sur cette page."+msgid "No spare parts added yet"msgstr "Aucune pièce de rechange ajoutée"@@ -1025,6 +1046,9 @@ msgstr "Précédent"msgid "Preventive"msgstr "Préventif"+msgid "Previous step"+msgstr "Étape précédente"+msgid "Print"msgstr "Imprimer"@@ -1130,6 +1154,9 @@ msgstr "Commande client"msgid "Save"msgstr "Enregistrer"+msgid "Save the form you're editing"+msgstr "Enregistrer le formulaire que vous modifiez"+msgid "Scan"msgstr "Scanner"@@ -1286,6 +1313,9 @@ msgstr "Manquant"msgid "Short pick {itemName}"msgstr "Prélèvement court {itemName}"+msgid "Show this overlay"+msgstr "Afficher cette superposition"+msgid "Sign in with Google"msgstr "Se connecter avec Google"@@ -1322,6 +1352,9 @@ msgstr "Pièces de rechange utilisées"msgid "Start"msgstr "Démarrer"+msgid "Start or pause the operation"+msgstr "Démarrer ou mettre en pause l'opération"+msgid "Station User"msgstr "Utilisateur du poste"@@ -1408,6 +1441,9 @@ msgstr "Temps travaillé : {0}"msgid "Today"msgstr "Aujourd'hui"+msgid "Toggle the sidebar"+msgstr "Afficher/masquer la barre latérale"+msgid "Tools"msgstr "Outils"diff --git a/packages/locale/locales/hi/erp.po b/packages/locale/locales/hi/erp.poindex 89a4f57f07..50735a92c2 100644--- a/packages/locale/locales/hi/erp.po+++ b/packages/locale/locales/hi/erp.po@@ -1143,6 +1143,9 @@ msgstr "मात्रा, मूल्य, शिपिंग, लीड टmsgid "Add a domain"msgstr "एक डोमेन जोड़ें"+msgid "Add a line (in document explorers)"+msgstr "दस्तावेज़ एक्सप्लोरर में पंक्ति जोड़ें"+msgid "Add a materials section that lists each item on the bill of materials with its quantity."msgstr "बिल ऑफ मेटेरियल्स पर प्रत्येक आइटम और उसकी मात्रा को सूचीबद्ध करने वाली एक सामग्री अनुभाग जोड़ें।"@@ -3616,6 +3619,9 @@ msgstr "की पुष्टि करें {0}"msgid "Confirm & release"msgstr "पुष्टि करें और जारी करें"+msgid "Confirm a dialog"+msgstr "संवाद की पुष्टि करें"+msgid "Confirm all"msgstr "सभी की पुष्टि करें"@@ -7637,6 +7643,9 @@ msgstr "{0} पर जाएं"msgid "Go to implementation hub"msgstr "कार्यान्वयन हब पर जाएं"+msgid "Go to module"+msgstr "मॉड्यूल पर जाएं"+msgid "Go to that week"msgstr "उस सप्ताह पर जाएं"@@ -8701,6 +8710,9 @@ msgstr "जर्नल पंक्तियाँ"msgid "Journals dated on or before this date are treated as locked. Merged with the provider-reported lock date when both exist."msgstr "इस तारीख को या इससे पहले दिनांकित जर्नल को लॉक माना जाता है। दोनों मौजूद होने पर प्रदाता द्वारा रिपोर्ट की गई लॉक तारीख के साथ मर्ज किया जाता है।"+msgid "Jump to a section on detail pages (⇧⌘ + the section's letter)"+msgstr "विवरण पृष्ठों पर अनुभाग पर जाएं (⇧⌘ + अनुभाग का अक्षर)"+msgid "Just one"msgstr "बस एक"@@ -8743,6 +8755,9 @@ msgstr "ऑर्डर, कोट्स और सेटिंग्स कोmsgid "Key"msgstr "कुंजी"+msgid "Keyboard shortcuts"+msgstr "कीबोर्ड शॉर्टकट"+msgid "Kind of record"msgstr "रिकॉर्ड का प्रकार"@@ -8966,6 +8981,9 @@ msgstr "हल्का"msgid "Light Mode"msgstr "लाइट मोड"+msgid "Light or dark mode"+msgstr "हल्का या गहरा थीम"+msgid "Lights Out (24×7)"msgstr "लाइट्स आउट (24×7)"@@ -10135,6 +10153,9 @@ msgstr "नई कोटेशन पंक्ति"msgid "New Receipt"msgstr "नई रसीद"+msgid "New record (on list pages)"+msgstr "नया रिकॉर्ड (सूची पृष्ठों पर)"+msgid "New record created"msgstr "नया रिकॉर्ड बनाया गया"@@ -10258,6 +10279,9 @@ msgstr "अगली नियत तिथि"msgid "Next page"msgstr "अगला पृष्ठ"+msgid "Next page (in tables)"+msgstr "अगला पृष्ठ (तालिकाओं में)"+msgid "Next Sequence"msgstr "अगला अनुक्रम"@@ -10652,6 +10676,9 @@ msgstr "इस विंडो में कोई शेड्यूल किmsgid "No shifts configured — assuming Mon–Fri, 8h days"msgstr "कोई पारियाँ कॉन्फ़िगर नहीं — सोमवार–शुक्रवार, 8 घंटे की दिन मानी जा रही है"+msgid "No shortcuts available on this page."+msgstr "इस पृष्ठ पर कोई शॉर्टकट उपलब्ध नहीं है।"+msgid "No single, trusted number for inventory or job status"msgstr "इन्वेंटरी या जॉब स्थिति के लिए कोई एकल, विश्वसनीय संख्या नहीं"@@ -12014,6 +12041,9 @@ msgstr "पिछला दिन"msgid "Previous page"msgstr "पिछला पृष्ठ"+msgid "Previous page (in tables)"+msgstr "पिछला पृष्ठ (तालिकाओं में)"+msgid "Previous step"msgstr "पिछला चरण"@@ -13840,6 +13870,9 @@ msgstr "विधि सहेजें"msgid "Save Rate"msgstr "दर सहेजें"+msgid "Save the form you're editing"+msgstr "जिस फॉर्म को आप संपादित कर रहे हैं उसे सहेजें"+msgid "Save view"msgstr "दृश्य सहेजें"@@ -14710,6 +14743,9 @@ msgstr "आपूर्तिकर्ता आईडी दिखाएं"msgid "Show sync options"msgstr "सिंक विकल्प दिखाएं"+msgid "Show this overlay"+msgstr "यह ओवरले दिखाएं"+msgid "Show Trailing Zeros"msgstr "अनुगामी शून्य दिखाएं"@@ -16947,6 +16983,9 @@ msgstr "स्तर टॉगल करें"msgid "Toggle Properties"msgstr "गुण टॉगल करें"+msgid "Toggle the sidebar"+msgstr "साइडबार को टॉगल करें"+msgid "Toggle views"msgstr "दृश्य टॉगल करें"diff --git a/packages/locale/locales/hi/mes.po b/packages/locale/locales/hi/mes.poindex 04a5e75d13..25f813a522 100644--- a/packages/locale/locales/hi/mes.po+++ b/packages/locale/locales/hi/mes.po@@ -138,6 +138,9 @@ msgstr "क्या आप सुनिश्चित हैं कि आपmsgid "Are you sure you want to leave this page?"msgstr "क्या आप वाकई इस पृष्ठ को छोड़ना चाहते हैं?"+msgid "Assembly steps"+msgstr "असेंबली चरण"+msgid "Assigned"msgstr "निर्दिष्ट"@@ -536,6 +539,9 @@ msgstr "सामग्री बिना चुने समाप्त कmsgid "Forgot to Clock Out?"msgstr "कार्य समाप्त करना भूल गए?"+msgid "General"+msgstr "सामान्य"+msgid "Go back to operation"msgstr "ऑपरेशन पर वापस जाएं"@@ -633,6 +639,9 @@ msgstr "जॉब"msgid "Keep picking"msgstr "पिकिंग जारी रखें"+msgid "Keyboard shortcuts"+msgstr "कीबोर्ड शॉर्टकट"+msgid "Kit"msgstr "किट"@@ -723,6 +732,9 @@ msgstr "इन्वेंटरी से मैनुअल रूप सेmsgid "Mark Short"msgstr "कम चिह्नित करें"+msgid "Mark the step done / record"+msgstr "चरण को हो गया चिह्नित करें / रिकॉर्ड करें"+msgid "matches"msgstr "मेल खाता है"@@ -766,6 +778,9 @@ msgstr "मेरे घंटे"msgid "Name"msgstr "नाम"+msgid "Navigation"+msgstr "नेविगेशन"+msgid "New"msgstr "नया"@@ -778,6 +793,9 @@ msgstr "सबसे नया पहले"msgid "Next"msgstr "अगला"+msgid "Next step"+msgstr "अगला चरण"+msgid "No"msgstr "नहीं"@@ -874,6 +892,9 @@ msgstr "कोई सीरियल नंबर नहीं"msgid "No serial numbers found"msgstr "कोई सीरियल नंबर नहीं मिला"+msgid "No shortcuts available on this page."+msgstr "इस पृष्ठ पर कोई शॉर्टकट उपलब्ध नहीं हैं।"+msgid "No spare parts added yet"msgstr "अभी तक कोई स्पेयर पार्ट्स नहीं जोड़े गए हैं"@@ -1025,6 +1046,9 @@ msgstr "पिछला"msgid "Preventive"msgstr "निवारक"+msgid "Previous step"+msgstr "पिछला चरण"+msgid "Print"msgstr "प्रिंट करें"@@ -1130,6 +1154,9 @@ msgstr "विक्रय आदेश"msgid "Save"msgstr "सहेजें"+msgid "Save the form you're editing"+msgstr "जो फॉर्म आप संपादित कर रहे हैं उसे सहेजें"+msgid "Scan"msgstr "स्कैन करें"@@ -1286,6 +1313,9 @@ msgstr "कम"msgid "Short pick {itemName}"msgstr "Short pick {itemName}"+msgid "Show this overlay"+msgstr "यह ओवरले दिखाएं"+msgid "Sign in with Google"msgstr "Google के साथ साइन इन करें"@@ -1322,6 +1352,9 @@ msgstr "उपयोग किए गए स्पेयर पार्ट्msgid "Start"msgstr "शुरू करें"+msgid "Start or pause the operation"+msgstr "ऑपरेशन को शुरू करें या रोकें"+msgid "Station User"msgstr "स्टेशन उपयोगकर्ता"@@ -1408,6 +1441,9 @@ msgstr "समय काम किया: {0}"msgid "Today"msgstr "आज"+msgid "Toggle the sidebar"+msgstr "साइडबार को टॉगल करें"+msgid "Tools"msgstr "उपकरण"diff --git a/packages/locale/locales/it/erp.po b/packages/locale/locales/it/erp.poindex d80b075984..83c52e7498 100644--- a/packages/locale/locales/it/erp.po+++ b/packages/locale/locales/it/erp.po@@ -1143,6 +1143,9 @@ msgstr "Aggiungi una riga di prezzo personalizzata per forzare quantità, prezzomsgid "Add a domain"msgstr "Aggiungi un dominio"+msgid "Add a line (in document explorers)"+msgstr "Aggiungi una riga (negli esploratori di documenti)"+msgid "Add a materials section that lists each item on the bill of materials with its quantity."msgstr "Aggiungi una sezione materiali che elenca ogni articolo della distinta base con la sua quantità."@@ -3616,6 +3619,9 @@ msgstr "Conferma {0}"msgid "Confirm & release"msgstr "Conferma e rilascia"+msgid "Confirm a dialog"+msgstr "Conferma una finestra di dialogo"+msgid "Confirm all"msgstr "Conferma tutti"@@ -7637,6 +7643,9 @@ msgstr "Vai a {0}"msgid "Go to implementation hub"msgstr "Vai all'hub di implementazione"+msgid "Go to module"+msgstr "Vai al modulo"+msgid "Go to that week"msgstr "Vai a quella settimana"@@ -8701,6 +8710,9 @@ msgstr "Righe di registrazione"msgid "Journals dated on or before this date are treated as locked. Merged with the provider-reported lock date when both exist."msgstr "Le prime note datate su o prima di questa data sono trattate come bloccate. Unite alla data di blocco segnalata dal provider quando entrambe esistono."+msgid "Jump to a section on detail pages (⇧⌘ + the section's letter)"+msgstr "Salta a una sezione nelle pagine di dettaglio (⇧⌘ + la lettera della sezione)"+msgid "Just one"msgstr "Solo uno"@@ -8743,6 +8755,9 @@ msgstr "Mantiene ordini, offerte e impostazioni dietro un secondo controllo"msgid "Key"msgstr "Chiave"+msgid "Keyboard shortcuts"+msgstr "Scorciatoie da tastiera"+msgid "Kind of record"msgstr "Tipo di record"@@ -8966,6 +8981,9 @@ msgstr "Chiaro"msgid "Light Mode"msgstr "Modalità Chiara"+msgid "Light or dark mode"+msgstr "Modalità chiara o scura"+msgid "Lights Out (24×7)"msgstr "Spento (24×7)"@@ -10135,6 +10153,9 @@ msgstr "Nuova Riga offerta"msgid "New Receipt"msgstr "Nuova Ricevuta"+msgid "New record (on list pages)"+msgstr "Nuovo record (nelle pagine di elenco)"+msgid "New record created"msgstr "Nuovo record creato"@@ -10258,6 +10279,9 @@ msgstr "Data di prossima scadenza"msgid "Next page"msgstr "Pagina successiva"+msgid "Next page (in tables)"+msgstr "Pagina successiva (nelle tabelle)"+msgid "Next Sequence"msgstr "Sequenza Successiva"@@ -10652,6 +10676,9 @@ msgstr "Nessun lavoro programmato in questo intervallo"msgid "No shifts configured — assuming Mon–Fri, 8h days"msgstr "Nessun turno configurato — presupponendo giorni lun–ven, 8h"+msgid "No shortcuts available on this page."+msgstr "Nessuna scorciatoia disponibile in questa pagina."+msgid "No single, trusted number for inventory or job status"msgstr "Nessun numero unico e affidabile per l'inventario o lo stato del lavoro"@@ -12014,6 +12041,9 @@ msgstr "Giorno precedente"msgid "Previous page"msgstr "Pagina precedente"+msgid "Previous page (in tables)"+msgstr "Pagina precedente (nelle tabelle)"+msgid "Previous step"msgstr "Passaggio precedente"@@ -13840,6 +13870,9 @@ msgstr "Salva Metodo"msgid "Save Rate"msgstr "Salva tasso"+msgid "Save the form you're editing"+msgstr "Salva il modulo che stai modificando"+msgid "Save view"msgstr "Salva vista"@@ -14710,6 +14743,9 @@ msgstr "Mostra ID Fornitore"msgid "Show sync options"msgstr "Mostra opzioni di sincronizzazione"+msgid "Show this overlay"+msgstr "Mostra questo overlay"+msgid "Show Trailing Zeros"msgstr "Mostra Zeri Finali"@@ -16947,6 +16983,9 @@ msgstr "Attiva/disattiva livello"msgid "Toggle Properties"msgstr "Attiva/Disattiva Proprietà"+msgid "Toggle the sidebar"+msgstr "Attiva/disattiva la barra laterale"+msgid "Toggle views"msgstr "Attiva/disattiva visualizzazioni"diff --git a/packages/locale/locales/it/mes.po b/packages/locale/locales/it/mes.poindex eb52d26756..c2fc637452 100644--- a/packages/locale/locales/it/mes.po+++ b/packages/locale/locales/it/mes.po@@ -138,6 +138,9 @@ msgstr "Sei sicuro di voler terminare questa operazione? Questo terminerà tuttimsgid "Are you sure you want to leave this page?"msgstr "Sei sicuro di voler lasciare questa pagina?"+msgid "Assembly steps"+msgstr "Fasi di montaggio"+msgid "Assigned"msgstr "Assegnato"@@ -536,6 +539,9 @@ msgstr "Terminare con il materiale non prelevato?"msgid "Forgot to Clock Out?"msgstr "Hai dimenticato il timbra fine?"+msgid "General"+msgstr "Generale"+msgid "Go back to operation"msgstr "Torna all'operazione"@@ -633,6 +639,9 @@ msgstr "Ordini di produzione"msgid "Keep picking"msgstr "Continua il prelievo"+msgid "Keyboard shortcuts"+msgstr "Scorciatoie da tastiera"+msgid "Kit"msgstr "Kit"@@ -723,6 +732,9 @@ msgstr "Rimuovi manualmente articoli dall'inventario"msgid "Mark Short"msgstr "Segna Mancante"+msgid "Mark the step done / record"+msgstr "Contrassegna il passo come fatto / registra"+msgid "matches"msgstr "corrisponde a"@@ -766,6 +778,9 @@ msgstr "Le Mie Ore"msgid "Name"msgstr "Nome"+msgid "Navigation"+msgstr "Navigazione"+msgid "New"msgstr "Nuovo"@@ -778,6 +793,9 @@ msgstr "Più recenti prima"msgid "Next"msgstr "Successivo"+msgid "Next step"+msgstr "Passo successivo"+msgid "No"msgstr "No"@@ -874,6 +892,9 @@ msgstr "Nessun numero di serie"msgid "No serial numbers found"msgstr "Nessun numero di serie trovato"+msgid "No shortcuts available on this page."+msgstr "Nessuna scorciatoia disponibile in questa pagina."+msgid "No spare parts added yet"msgstr "Nessun ricambio ancora aggiunto"@@ -1025,6 +1046,9 @@ msgstr "Precedente"msgid "Preventive"msgstr "Preventivo"+msgid "Previous step"+msgstr "Passo precedente"+msgid "Print"msgstr "Stampa"@@ -1130,6 +1154,9 @@ msgstr "Ordine di Vendita"msgid "Save"msgstr "Salva"+msgid "Save the form you're editing"+msgstr "Salva il modulo che stai modificando"+msgid "Scan"msgstr "Scansiona"@@ -1286,6 +1313,9 @@ msgstr "Carente"msgid "Short pick {itemName}"msgstr "Prelievo breve {itemName}"+msgid "Show this overlay"+msgstr "Mostra questo pannello"+msgid "Sign in with Google"msgstr "Accedi con Google"@@ -1322,6 +1352,9 @@ msgstr "Ricambi Utilizzati"msgid "Start"msgstr "Avvia"+msgid "Start or pause the operation"+msgstr "Avvia o sospendi l'operazione"+msgid "Station User"msgstr "Utente Stazione"@@ -1408,6 +1441,9 @@ msgstr "Tempo Lavorato: {0}"msgid "Today"msgstr "Oggi"+msgid "Toggle the sidebar"+msgstr "Attiva/disattiva la barra laterale"+msgid "Tools"msgstr "Utensili"diff --git a/packages/locale/locales/ja/erp.po b/packages/locale/locales/ja/erp.poindex 429e750ea0..aa533c83aa 100644--- a/packages/locale/locales/ja/erp.po+++ b/packages/locale/locales/ja/erp.po@@ -1143,6 +1143,9 @@ msgstr "数量、価格、配送、リードタイム、および税を上書きmsgid "Add a domain"msgstr "ドメインを追加"+msgid "Add a line (in document explorers)"+msgstr "行を追加(文書エクスプローラーで)"+msgid "Add a materials section that lists each item on the bill of materials with its quantity."msgstr "部品表の各項目とその数量をリストアップした材料セクションを追加します。"@@ -3616,6 +3619,9 @@ msgstr "{0}を確認"msgid "Confirm & release"msgstr "確認してリリース"+msgid "Confirm a dialog"+msgstr "ダイアログを確認"+msgid "Confirm all"msgstr "すべて確認"@@ -7637,6 +7643,9 @@ msgstr "{0}に移動"msgid "Go to implementation hub"msgstr "実施ハブに移動"+msgid "Go to module"+msgstr "モジュールに移動"+msgid "Go to that week"msgstr "その週に移動"@@ -8701,6 +8710,9 @@ msgstr "仕訳明細"msgid "Journals dated on or before this date are treated as locked. Merged with the provider-reported lock date when both exist."msgstr "この日付以前の仕訳はロック中として扱われます。両方が存在する場合、プロバイダーが報告したロック日付とマージされます。"+msgid "Jump to a section on detail pages (⇧⌘ + the section's letter)"+msgstr "詳細ページのセクションにジャンプ(⇧⌘ + セクションの文字)"+msgid "Just one"msgstr "1つだけ"@@ -8743,6 +8755,9 @@ msgstr "注文、見積、設定を2段階認証で保護します"msgid "Key"msgstr "キー"+msgid "Keyboard shortcuts"+msgstr "キーボードショートカット"+msgid "Kind of record"msgstr "レコード種別"@@ -8966,6 +8981,9 @@ msgstr "ライト"msgid "Light Mode"msgstr "ライトモード"+msgid "Light or dark mode"+msgstr "ライト/ダークモード"+msgid "Lights Out (24×7)"msgstr "ライツアウト(24×7)"@@ -10135,6 +10153,9 @@ msgstr "新規見積明細"msgid "New Receipt"msgstr "新しい領収書"+msgid "New record (on list pages)"+msgstr "新規記録(リストページで)"+msgid "New record created"msgstr "新しいレコードが作成されました"@@ -10258,6 +10279,9 @@ msgstr "次の期日"msgid "Next page"msgstr "次のページ"+msgid "Next page (in tables)"+msgstr "次ページ(テーブルで)"+msgid "Next Sequence"msgstr "次の採番"@@ -10652,6 +10676,9 @@ msgstr "このウィンドウにはスケジュール済みの作業がありまmsgid "No shifts configured — assuming Mon–Fri, 8h days"msgstr "シフトが構成されていません — 月~金、8時間営業を想定"+msgid "No shortcuts available on this page."+msgstr "このページではショートカットはありません。"+msgid "No single, trusted number for inventory or job status"msgstr "在庫またはジョブステータスの単一の信頼できる数値がない"@@ -12014,6 +12041,9 @@ msgstr "前の日"msgid "Previous page"msgstr "前のページ"+msgid "Previous page (in tables)"+msgstr "前ページ(テーブルで)"+msgid "Previous step"msgstr "前のステップ"@@ -13840,6 +13870,9 @@ msgstr "メソッドを保存"msgid "Save Rate"msgstr "レートを保存"+msgid "Save the form you're editing"+msgstr "編集中のフォームを保存"+msgid "Save view"msgstr "ビューを保存"@@ -14710,6 +14743,9 @@ msgstr "仕入先IDを表示"msgid "Show sync options"msgstr "同期オプションを表示"+msgid "Show this overlay"+msgstr "このオーバーレイを表示"+msgid "Show Trailing Zeros"msgstr "末尾のゼロを表示"@@ -16947,6 +16983,9 @@ msgstr "レベルを切り替え"msgid "Toggle Properties"msgstr "プロパティを切り替え"+msgid "Toggle the sidebar"+msgstr "サイドバーを切り替え"+msgid "Toggle views"msgstr "ビューを切り替える"diff --git a/packages/locale/locales/ja/mes.po b/packages/locale/locales/ja/mes.poindex 848bc5a1f5..a1c2c2f301 100644--- a/packages/locale/locales/ja/mes.po+++ b/packages/locale/locales/ja/mes.po@@ -138,6 +138,9 @@ msgstr "この操作を終了してもよろしいですか?これにより、msgid "Are you sure you want to leave this page?"msgstr "このページを離れてもよろしいですか?"+msgid "Assembly steps"+msgstr "組立工程"+msgid "Assigned"msgstr "割当済み"@@ -536,6 +539,9 @@ msgstr "材料がピッキングされていない状態で終了しますか?"msgid "Forgot to Clock Out?"msgstr "作業終了を忘れていませんか?"+msgid "General"+msgstr "一般"+msgid "Go back to operation"msgstr "操作に戻る"@@ -633,6 +639,9 @@ msgstr "製造指図"msgid "Keep picking"msgstr "ピッキングを続ける"+msgid "Keyboard shortcuts"+msgstr "キーボード ショートカット"+msgid "Kit"msgstr "キット"@@ -723,6 +732,9 @@ msgstr "在庫から品目を手動で除去"msgid "Mark Short"msgstr "短い数量をマーク"+msgid "Mark the step done / record"+msgstr "工程を完了としてマーク / 記録"+msgid "matches"msgstr "が一致"@@ -766,6 +778,9 @@ msgstr "勤務時間"msgid "Name"msgstr "名前"+msgid "Navigation"+msgstr "ナビゲーション"+msgid "New"msgstr "新規"@@ -778,6 +793,9 @@ msgstr "最新順"msgid "Next"msgstr "次へ"+msgid "Next step"+msgstr "次のステップ"+msgid "No"msgstr "いいえ"@@ -874,6 +892,9 @@ msgstr "シリアル番号なし"msgid "No serial numbers found"msgstr "シリアル番号が見つかりません"+msgid "No shortcuts available on this page."+msgstr "このページで利用可能なショートカットはありません。"+msgid "No spare parts added yet"msgstr "予備品はまだ追加されていません。"@@ -1025,6 +1046,9 @@ msgstr "前へ"msgid "Preventive"msgstr "予防保全"+msgid "Previous step"+msgstr "前のステップ"+msgid "Print"msgstr "印刷"@@ -1130,6 +1154,9 @@ msgstr "受注"msgid "Save"msgstr "保存"+msgid "Save the form you're editing"+msgstr "編集中のフォームを保存"+msgid "Scan"msgstr "スキャン"@@ -1286,6 +1313,9 @@ msgstr "不足"msgid "Short pick {itemName}"msgstr "短いピック {itemName}"+msgid "Show this overlay"+msgstr "このオーバーレイを表示"+msgid "Sign in with Google"msgstr "Googleでサインイン"@@ -1322,6 +1352,9 @@ msgstr "使用予備品"msgid "Start"msgstr "開始"+msgid "Start or pause the operation"+msgstr "工程を開始 / 一時停止"+msgid "Station User"msgstr "ステーションユーザー"@@ -1408,6 +1441,9 @@ msgstr "作業時間: {0}"msgid "Today"msgstr "今日"+msgid "Toggle the sidebar"+msgstr "サイドバーを切り替え"+msgid "Tools"msgstr "工具"diff --git a/packages/locale/locales/ko/erp.po b/packages/locale/locales/ko/erp.poindex 0710d056ee..28ee7776eb 100644--- a/packages/locale/locales/ko/erp.po+++ b/packages/locale/locales/ko/erp.po@@ -1143,6 +1143,9 @@ msgstr "수량, 가격, 배송, 리드타임 및 세금을 재정의하기 위msgid "Add a domain"msgstr "도메인 추가"+msgid "Add a line (in document explorers)"+msgstr "라인 추가 (문서 탐색기에서)"+msgid "Add a materials section that lists each item on the bill of materials with its quantity."msgstr "자재 섹션을 추가하여 자재 명세서의 각 항목과 수량을 나열합니다."@@ -3616,6 +3619,9 @@ msgstr "{0} 확인"msgid "Confirm & release"msgstr "확인 및 릴리스"+msgid "Confirm a dialog"+msgstr "대화 상자 확인"+msgid "Confirm all"msgstr "모두 확인"@@ -7637,6 +7643,9 @@ msgstr "{0}(으)로 이동"msgid "Go to implementation hub"msgstr "실행 허브로 이동"+msgid "Go to module"+msgstr "모듈로 이동"+msgid "Go to that week"msgstr "해당 주로 이동"@@ -8701,6 +8710,9 @@ msgstr "분개 라인"msgid "Journals dated on or before this date are treated as locked. Merged with the provider-reported lock date when both exist."msgstr "이 날짜 또는 이전 날짜의 전표는 잠김으로 처리됩니다. 둘 다 존재할 때 공급자 보고 잠금 날짜와 병합됩니다."+msgid "Jump to a section on detail pages (⇧⌘ + the section's letter)"+msgstr "상세 페이지의 섹션으로 이동 (⇧⌘ + 섹션의 글자)"+msgid "Just one"msgstr "정확히 하나"@@ -8743,6 +8755,9 @@ msgstr "주문, 견적 및 설정을 이중 확인으로 보호합니다"msgid "Key"msgstr "키"+msgid "Keyboard shortcuts"+msgstr "키보드 단축키"+msgid "Kind of record"msgstr "기록 유형"@@ -8966,6 +8981,9 @@ msgstr "라이트"msgid "Light Mode"msgstr "라이트 모드"+msgid "Light or dark mode"+msgstr "밝은 테마 또는 어두운 테마"+msgid "Lights Out (24×7)"msgstr "조명 꺼짐 (24×7)"@@ -10135,6 +10153,9 @@ msgstr "새 견적 라인"msgid "New Receipt"msgstr "새 입고"+msgid "New record (on list pages)"+msgstr "새 레코드 (목록 페이지에서)"+msgid "New record created"msgstr "새 레코드가 생성되었습니다"@@ -10258,6 +10279,9 @@ msgstr "다음 마감일"msgid "Next page"msgstr "다음 페이지"+msgid "Next page (in tables)"+msgstr "다음 페이지 (표에서)"+msgid "Next Sequence"msgstr "다음 채번 규칙"@@ -10652,6 +10676,9 @@ msgstr "이 시간대에 스케줄된 작업이 없습니다"msgid "No shifts configured — assuming Mon–Fri, 8h days"msgstr "교대근무 구성 없음 — 월–금, 8시간 근무일 가정"+msgid "No shortcuts available on this page."+msgstr "이 페이지에서는 사용 가능한 단축키가 없습니다."+msgid "No single, trusted number for inventory or job status"msgstr "재고나 작업 상태를 나타내는 신뢰할 수 있는 단일 수치가 없음"@@ -12014,6 +12041,9 @@ msgstr "이전 날"msgid "Previous page"msgstr "이전 페이지"+msgid "Previous page (in tables)"+msgstr "이전 페이지 (표에서)"+msgid "Previous step"msgstr "이전 단계"@@ -13840,6 +13870,9 @@ msgstr "저장 방법"msgid "Save Rate"msgstr "환율 저장"+msgid "Save the form you're editing"+msgstr "편집 중인 양식 저장"+msgid "Save view"msgstr "보기 저장"@@ -14710,6 +14743,9 @@ msgstr "공급업체 ID 표시"msgid "Show sync options"msgstr "동기화 옵션 표시"+msgid "Show this overlay"+msgstr "이 오버레이 표시"+msgid "Show Trailing Zeros"msgstr "후행 0 표시"@@ -16947,6 +16983,9 @@ msgstr "레벨 전환"msgid "Toggle Properties"msgstr "속성 전환"+msgid "Toggle the sidebar"+msgstr "사이드바 토글"+msgid "Toggle views"msgstr "보기 전환"diff --git a/packages/locale/locales/ko/mes.po b/packages/locale/locales/ko/mes.poindex c3538968ee..1b74b35ff9 100644--- a/packages/locale/locales/ko/mes.po+++ b/packages/locale/locales/ko/mes.po@@ -138,6 +138,9 @@ msgstr "이 공정작업을 완료하시겠습니까? 이 작업은 해당 공msgid "Are you sure you want to leave this page?"msgstr "이 페이지를 나가시겠습니까?"+msgid "Assembly steps"+msgstr "조립 단계"+msgid "Assigned"msgstr "배정됨"@@ -536,6 +539,9 @@ msgstr "미선택 재료가 있는 상태로 완료하시겠습니까?"msgid "Forgot to Clock Out?"msgstr "작업 종료를 잊었나요?"+msgid "General"+msgstr "일반"+msgid "Go back to operation"msgstr "공정작업으로 돌아가기"@@ -633,6 +639,9 @@ msgstr "작업 지시"msgid "Keep picking"msgstr "피킹을 계속하세요"+msgid "Keyboard shortcuts"+msgstr "키보드 단축키"+msgid "Kit"msgstr "키트"@@ -723,6 +732,9 @@ msgstr "재고에서 품목을 수동으로 제거"msgid "Mark Short"msgstr "부족으로 표시"+msgid "Mark the step done / record"+msgstr "단계를 완료로 표시 / 기록"+msgid "matches"msgstr "일치"@@ -766,6 +778,9 @@ msgstr "내 근무 시간"msgid "Name"msgstr "이름"+msgid "Navigation"+msgstr "탐색"+msgid "New"msgstr "신규"@@ -778,6 +793,9 @@ msgstr "최신순"msgid "Next"msgstr "다음"+msgid "Next step"+msgstr "다음 단계"+msgid "No"msgstr "아니요"@@ -874,6 +892,9 @@ msgstr "시리얼 번호 없음"msgid "No serial numbers found"msgstr "시리얼 번호를 찾을 수 없습니다"+msgid "No shortcuts available on this page."+msgstr "이 페이지에서 사용 가능한 단축키가 없습니다."+msgid "No spare parts added yet"msgstr "아직 추가된 예비 부품이 없습니다"@@ -1025,6 +1046,9 @@ msgstr "이전"msgid "Preventive"msgstr "예방"+msgid "Previous step"+msgstr "이전 단계"+msgid "Print"msgstr "인쇄"@@ -1130,6 +1154,9 @@ msgstr "수주"msgid "Save"msgstr "저장"+msgid "Save the form you're editing"+msgstr "편집 중인 양식 저장"+msgid "Scan"msgstr "스캔"@@ -1286,6 +1313,9 @@ msgstr "짧게"msgid "Short pick {itemName}"msgstr "{itemName} 부족 피킹"+msgid "Show this overlay"+msgstr "이 오버레이 표시"+msgid "Sign in with Google"msgstr "Google로 로그인"@@ -1322,6 +1352,9 @@ msgstr "사용된 예비 부품"msgid "Start"msgstr "시작"+msgid "Start or pause the operation"+msgstr "공정을 시작하거나 일시 중지"+msgid "Station User"msgstr "스테이션 사용자"@@ -1408,6 +1441,9 @@ msgstr "작업 시간: {0}"msgid "Today"msgstr "오늘"+msgid "Toggle the sidebar"+msgstr "사이드바 전환"+msgid "Tools"msgstr "공구"diff --git a/packages/locale/locales/pl/erp.po b/packages/locale/locales/pl/erp.poindex 30d12102a4..55729993d6 100644--- a/packages/locale/locales/pl/erp.po+++ b/packages/locale/locales/pl/erp.po@@ -1143,6 +1143,9 @@ msgstr "Dodaj niestandardowy wiersz cennika, aby nadpisać ilość, cenę, wysymsgid "Add a domain"msgstr "Dodaj domenę"+msgid "Add a line (in document explorers)"+msgstr "Dodaj pozycję (w przeglądarkach dokumentów)"+msgid "Add a materials section that lists each item on the bill of materials with its quantity."msgstr "Dodaj sekcję materiałów, która zawiera listę każdego elementu zestawienia materiałowego z jego ilością."@@ -3616,6 +3619,9 @@ msgstr "Potwierdź {0}"msgid "Confirm & release"msgstr "Potwierdź i zwolnij"+msgid "Confirm a dialog"+msgstr "Potwierdź okno dialogowe"+msgid "Confirm all"msgstr "Potwierdź wszystkie"@@ -7637,6 +7643,9 @@ msgstr "Przejdź do {0}"msgid "Go to implementation hub"msgstr "Przejdź do centrum wdrażania"+msgid "Go to module"+msgstr "Przejdź do modułu"+msgid "Go to that week"msgstr "Przejdź do tego tygodnia"@@ -8701,6 +8710,9 @@ msgstr "Pozycje dziennika"msgid "Journals dated on or before this date are treated as locked. Merged with the provider-reported lock date when both exist."msgstr "Dowody księgowe datowane na dzień lub wcześniej są traktowane jako zablokowane. Scalane z datą blokady zgłoszoną przez dostawcę, gdy oba istnieją."+msgid "Jump to a section on detail pages (⇧⌘ + the section's letter)"+msgstr "Przejdź do sekcji na stronach szczegółów (⇧⌘ + litera sekcji)"+msgid "Just one"msgstr "Tylko jeden"@@ -8743,6 +8755,9 @@ msgstr "Utrzymuje zamówienia, oferty i ustawienia za drugą weryfikacją"msgid "Key"msgstr "Klucz"+msgid "Keyboard shortcuts"+msgstr "Skróty klawiaturowe"+msgid "Kind of record"msgstr "Rodzaj rekordu"@@ -8966,6 +8981,9 @@ msgstr "Jasne"msgid "Light Mode"msgstr "Tryb jasny"+msgid "Light or dark mode"+msgstr "Tryb jasny lub ciemny"+msgid "Lights Out (24×7)"msgstr "Bez oświetlenia (24×7)"@@ -10135,6 +10153,9 @@ msgstr "Nowa Pozycja oferty"msgid "New Receipt"msgstr "Nowy Paragon"+msgid "New record (on list pages)"+msgstr "Nowy rekord (na stronach listy)"+msgid "New record created"msgstr "Nowy rekord utworzony"@@ -10258,6 +10279,9 @@ msgstr "Następny Termin"msgid "Next page"msgstr "Następna strona"+msgid "Next page (in tables)"+msgstr "Następna strona (w tabelach)"+msgid "Next Sequence"msgstr "Następna Numeracja"@@ -10652,6 +10676,9 @@ msgstr "Brak zaplanowanych prac w tym oknie czasowym"msgid "No shifts configured — assuming Mon–Fri, 8h days"msgstr "Brak skonfigurowanych zmian — założenie pon–pt, dni po 8 godz."+msgid "No shortcuts available on this page."+msgstr "Brak dostępnych skrótów na tej stronie."+msgid "No single, trusted number for inventory or job status"msgstr "Brak jednej, zaufanej liczby dla zapasów lub statusu zadania"@@ -12014,6 +12041,9 @@ msgstr "Poprzedni dzień"msgid "Previous page"msgstr "Poprzednia strona"+msgid "Previous page (in tables)"+msgstr "Poprzednia strona (w tabelach)"+msgid "Previous step"msgstr "Poprzedni krok"@@ -13840,6 +13870,9 @@ msgstr "Zapisz metodę"msgid "Save Rate"msgstr "Zapisz kurs"+msgid "Save the form you're editing"+msgstr "Zapisz formularz, który edytujesz"+msgid "Save view"msgstr "Zapisz widok"@@ -14710,6 +14743,9 @@ msgstr "Pokaż identyfikatory dostawców"msgid "Show sync options"msgstr "Pokaż opcje synchronizacji"+msgid "Show this overlay"+msgstr "Wyświetl to okno nakładki"+msgid "Show Trailing Zeros"msgstr "Wyświetlaj zera końcowe"@@ -16947,6 +16983,9 @@ msgstr "Przełącz poziom"msgid "Toggle Properties"msgstr "Przełącz właściwości"+msgid "Toggle the sidebar"+msgstr "Przełącz pasek boczny"+msgid "Toggle views"msgstr "Przełącz widoki"diff --git a/packages/locale/locales/pl/mes.po b/packages/locale/locales/pl/mes.poindex fe9daac152..e8402cbb04 100644--- a/packages/locale/locales/pl/mes.po+++ b/packages/locale/locales/pl/mes.po@@ -138,6 +138,9 @@ msgstr "Czy na pewno chcesz zakończyć tę operację? Spowoduje to zakończeniemsgid "Are you sure you want to leave this page?"msgstr "Czy na pewno chcesz opuścić tę stronę?"+msgid "Assembly steps"+msgstr "Kroki montażu"+msgid "Assigned"msgstr "Przypisane"@@ -536,6 +539,9 @@ msgstr "Zakończyć bez wybranego materiału?"msgid "Forgot to Clock Out?"msgstr "Zapomniano o zakończeniu pracy?"+msgid "General"+msgstr "Ogólne"+msgid "Go back to operation"msgstr "Wróć do operacji"@@ -633,6 +639,9 @@ msgstr "Zlecenia produkcyjne"msgid "Keep picking"msgstr "Kontynuuj kompletację"+msgid "Keyboard shortcuts"+msgstr "Skróty klawiaturowe"+msgid "Kit"msgstr "Zestaw"@@ -723,6 +732,9 @@ msgstr "Ręcznie usuń artykuły z zapasów"msgid "Mark Short"msgstr "Oznacz jako brakujące"+msgid "Mark the step done / record"+msgstr "Oznacz krok jako gotowy / zapisz"+msgid "matches"msgstr "pasuje do"@@ -766,6 +778,9 @@ msgstr "Moje godziny"msgid "Name"msgstr "Nazwa"+msgid "Navigation"+msgstr "Nawigacja"+msgid "New"msgstr "Nowy"@@ -778,6 +793,9 @@ msgstr "Najnowsze pierwsze"msgid "Next"msgstr "Następny"+msgid "Next step"+msgstr "Następny krok"+msgid "No"msgstr "Nie"@@ -874,6 +892,9 @@ msgstr "Brak numerów seryjnych"msgid "No serial numbers found"msgstr "Nie znaleziono numerów seryjnych"+msgid "No shortcuts available on this page."+msgstr "Na tej stronie nie są dostępne żadne skróty."+msgid "No spare parts added yet"msgstr "Nie dodano jeszcze części zamiennych"@@ -1025,6 +1046,9 @@ msgstr "Poprzedni"msgid "Preventive"msgstr "Zapobiegawcze"+msgid "Previous step"+msgstr "Poprzedni krok"+msgid "Print"msgstr "Drukuj"@@ -1130,6 +1154,9 @@ msgstr "Zamówienie sprzedaży"msgid "Save"msgstr "Zapisz"+msgid "Save the form you're editing"+msgstr "Zapisz formularz, który edytujesz"+msgid "Scan"msgstr "Skanuj"@@ -1286,6 +1313,9 @@ msgstr "Brakuje"msgid "Short pick {itemName}"msgstr "Krótki pick {itemName}"+msgid "Show this overlay"+msgstr "Pokaż to menu"+msgid "Sign in with Google"msgstr "Zaloguj się przez Google"@@ -1322,6 +1352,9 @@ msgstr "Użyte części zamienne"msgid "Start"msgstr "Start"+msgid "Start or pause the operation"+msgstr "Uruchom lub wstrzymaj operację"+msgid "Station User"msgstr "Użytkownik stacji"@@ -1408,6 +1441,9 @@ msgstr "Przepracowany czas: {0}"msgid "Today"msgstr "Dzisiaj"+msgid "Toggle the sidebar"+msgstr "Przełącz pasek boczny"+msgid "Tools"msgstr "Narzędzia"diff --git a/packages/locale/locales/pt/erp.po b/packages/locale/locales/pt/erp.poindex b0bdc63ed9..32175f42c8 100644--- a/packages/locale/locales/pt/erp.po+++ b/packages/locale/locales/pt/erp.po@@ -1143,6 +1143,9 @@ msgstr "Adicionar uma linha de precificação personalizada para substituir quanmsgid "Add a domain"msgstr "Adicionar um domínio"+msgid "Add a line (in document explorers)"+msgstr "Adicionar uma linha (em exploradores de documento)"+msgid "Add a materials section that lists each item on the bill of materials with its quantity."msgstr "Adicione uma seção de materiais que lista cada item na lista de materiais com sua quantidade."@@ -3616,6 +3619,9 @@ msgstr "Confirmar {0}"msgid "Confirm & release"msgstr "Confirmar e liberar"+msgid "Confirm a dialog"+msgstr "Confirmar um diálogo"+msgid "Confirm all"msgstr "Confirmar tudo"@@ -7637,6 +7643,9 @@ msgstr "Ir para {0}"msgid "Go to implementation hub"msgstr "Ir para o hub de implementação"+msgid "Go to module"+msgstr "Ir para o módulo"+msgid "Go to that week"msgstr "Ir para essa semana"@@ -8701,6 +8710,9 @@ msgstr "Linhas de lançamento"msgid "Journals dated on or before this date are treated as locked. Merged with the provider-reported lock date when both exist."msgstr "Diários datados nesta data ou antes são tratados como bloqueados. Mesclados com a data de bloqueio relatada pelo fornecedor quando ambos existem."+msgid "Jump to a section on detail pages (⇧⌘ + the section's letter)"+msgstr "Ir para uma seção em páginas de detalhes (⇧⌘ + a letra da seção)"+msgid "Just one"msgstr "Apenas um"@@ -8743,6 +8755,9 @@ msgstr "Mantém pedidos, cotações e configurações atrás de uma segunda verimsgid "Key"msgstr "Chave"+msgid "Keyboard shortcuts"+msgstr "Atalhos de teclado"+msgid "Kind of record"msgstr "Tipo de registro"@@ -8966,6 +8981,9 @@ msgstr "Claro"msgid "Light Mode"msgstr "Modo Claro"+msgid "Light or dark mode"+msgstr "Modo claro ou escuro"+msgid "Lights Out (24×7)"msgstr "Luzes Apagadas (24×7)"@@ -10135,6 +10153,9 @@ msgstr "Nova linha do orçamento"msgid "New Receipt"msgstr "Novo Recebimento"+msgid "New record (on list pages)"+msgstr "Novo registro (em páginas de lista)"+msgid "New record created"msgstr "Novo registro criado"@@ -10258,6 +10279,9 @@ msgstr "Próxima Data de Vencimento"msgid "Next page"msgstr "Próxima página"+msgid "Next page (in tables)"+msgstr "Próxima página (em tabelas)"+msgid "Next Sequence"msgstr "Próxima Sequência"@@ -10652,6 +10676,9 @@ msgstr "Nenhum trabalho programado nesta janela"msgid "No shifts configured — assuming Mon–Fri, 8h days"msgstr "Nenhum turno configurado — assumindo segunda–sexta, dias de 8h"+msgid "No shortcuts available on this page."+msgstr "Nenhum atalho disponível nesta página."+msgid "No single, trusted number for inventory or job status"msgstr "Nenhum número único e confiável para inventário ou status do trabalho"@@ -12014,6 +12041,9 @@ msgstr "Dia Anterior"msgid "Previous page"msgstr "Página anterior"+msgid "Previous page (in tables)"+msgstr "Página anterior (em tabelas)"+msgid "Previous step"msgstr "Etapa anterior"@@ -13840,6 +13870,9 @@ msgstr "Salvar Método"msgid "Save Rate"msgstr "Salvar taxa"+msgid "Save the form you're editing"+msgstr "Salvar o formulário que você está editando"+msgid "Save view"msgstr "Salvar visualização"@@ -14710,6 +14743,9 @@ msgstr "Mostrar IDs de Fornecedor"msgid "Show sync options"msgstr "Mostrar opções de sincronização"+msgid "Show this overlay"+msgstr "Mostrar esta sobreposição"+msgid "Show Trailing Zeros"msgstr "Mostrar Zeros Decimais"@@ -16947,6 +16983,9 @@ msgstr "Alternar nível"msgid "Toggle Properties"msgstr "Alternar Propriedades"+msgid "Toggle the sidebar"+msgstr "Alternar a barra lateral"+msgid "Toggle views"msgstr "Alternar visualizações"diff --git a/packages/locale/locales/pt/mes.po b/packages/locale/locales/pt/mes.poindex ef9eb08ee6..e0f1895226 100644--- a/packages/locale/locales/pt/mes.po+++ b/packages/locale/locales/pt/mes.po@@ -138,6 +138,9 @@ msgstr "Tem a certeza de que deseja concluir esta operação? Isto terminará tomsgid "Are you sure you want to leave this page?"msgstr "Tem certeza que deseja sair desta página?"+msgid "Assembly steps"+msgstr "Etapas de montagem"+msgid "Assigned"msgstr "Atribuído"@@ -536,6 +539,9 @@ msgstr "Finalizar com material não selecionado?"msgid "Forgot to Clock Out?"msgstr "Esqueceu de apontar fim?"+msgid "General"+msgstr "Geral"+msgid "Go back to operation"msgstr "Voltar para operação"@@ -633,6 +639,9 @@ msgstr "Ordens de produção"msgid "Keep picking"msgstr "Continuar separação"+msgid "Keyboard shortcuts"+msgstr "Atalhos de teclado"+msgid "Kit"msgstr "Kit"@@ -723,6 +732,9 @@ msgstr "Remover itens do estoque manualmente"msgid "Mark Short"msgstr "Marcar como Falta"+msgid "Mark the step done / record"+msgstr "Marcar a etapa como feita / gravar"+msgid "matches"msgstr "corresponde"@@ -766,6 +778,9 @@ msgstr "Minhas Horas"msgid "Name"msgstr "Nome"+msgid "Navigation"+msgstr "Navegação"+msgid "New"msgstr "Novo"@@ -778,6 +793,9 @@ msgstr "Mais recente primeiro"msgid "Next"msgstr "Próximo"+msgid "Next step"+msgstr "Próxima etapa"+msgid "No"msgstr "Não"@@ -874,6 +892,9 @@ msgstr "Nenhum número de série"msgid "No serial numbers found"msgstr "Nenhum número de série encontrado"+msgid "No shortcuts available on this page."+msgstr "Nenhum atalho disponível nesta página."+msgid "No spare parts added yet"msgstr "Nenhuma peça de reposição adicionada ainda"@@ -1025,6 +1046,9 @@ msgstr "Anterior"msgid "Preventive"msgstr "Preventiva"+msgid "Previous step"+msgstr "Etapa anterior"+msgid "Print"msgstr "Imprimir"@@ -1130,6 +1154,9 @@ msgstr "Pedido de Venda"msgid "Save"msgstr "Salvar"+msgid "Save the form you're editing"+msgstr "Salvar o formulário que você está editando"+msgid "Scan"msgstr "Escanear"@@ -1286,6 +1313,9 @@ msgstr "Falta"msgid "Short pick {itemName}"msgstr "Colheita curta {itemName}"+msgid "Show this overlay"+msgstr "Mostrar esta sobreposição"+msgid "Sign in with Google"msgstr "Entrar com Google"@@ -1322,6 +1352,9 @@ msgstr "Peças de reposição utilizadas"msgid "Start"msgstr "Iniciar"+msgid "Start or pause the operation"+msgstr "Iniciar ou pausar a operação"+msgid "Station User"msgstr "Usuário da Estação"@@ -1408,6 +1441,9 @@ msgstr "Tempo Trabalhado: {0}"msgid "Today"msgstr "Hoje"+msgid "Toggle the sidebar"+msgstr "Alternar barra lateral"+msgid "Tools"msgstr "Ferramentas"diff --git a/packages/locale/locales/ru/erp.po b/packages/locale/locales/ru/erp.poindex bba7941f38..0294a226ce 100644--- a/packages/locale/locales/ru/erp.po+++ b/packages/locale/locales/ru/erp.po@@ -1143,6 +1143,9 @@ msgstr "Добавить пользовательскую строку ценоmsgid "Add a domain"msgstr "Добавить домен"+msgid "Add a line (in document explorers)"+msgstr "Добавить строку (в обозревателях документов)"+msgid "Add a materials section that lists each item on the bill of materials with its quantity."msgstr "Добавить раздел материалов, в котором указывается каждый элемент спецификации материалов с его количеством."@@ -3616,6 +3619,9 @@ msgstr "Подтвердить {0}"msgid "Confirm & release"msgstr "Подтвердить и запустить в работу"+msgid "Confirm a dialog"+msgstr "Подтвердить диалоговое окно"+msgid "Confirm all"msgstr "Подтвердить все"@@ -7637,6 +7643,9 @@ msgstr "Перейти к {0}"msgid "Go to implementation hub"msgstr "Перейти в центр внедрения"+msgid "Go to module"+msgstr "Перейти в модуль"+msgid "Go to that week"msgstr "Перейти на эту неделю"@@ -8701,6 +8710,9 @@ msgstr "Строки журнала"msgid "Journals dated on or before this date are treated as locked. Merged with the provider-reported lock date when both exist."msgstr "Операции, датированные в эту дату или ранее, считаются заблокированными. Объединены с датой блокировки, указанной поставщиком, если обе существуют."+msgid "Jump to a section on detail pages (⇧⌘ + the section's letter)"+msgstr "Перейти к разделу на страницах деталей (⇧⌘ + буква раздела)"+msgid "Just one"msgstr "Только один"@@ -8743,6 +8755,9 @@ msgstr "Требует дополнительную проверку для заmsgid "Key"msgstr "Ключ"+msgid "Keyboard shortcuts"+msgstr "Сочетания клавиш"+msgid "Kind of record"msgstr "Тип записи"@@ -8966,6 +8981,9 @@ msgstr "Светлая"msgid "Light Mode"msgstr "Светлый режим"+msgid "Light or dark mode"+msgstr "Светлая или тёмная тема"+msgid "Lights Out (24×7)"msgstr "Темное производство (24×7)"@@ -10135,6 +10153,9 @@ msgstr "Новая строка предложения"msgid "New Receipt"msgstr "Новая квитанция"+msgid "New record (on list pages)"+msgstr "Новая запись (на страницах списков)"+msgid "New record created"msgstr "Создана новая запись"@@ -10258,6 +10279,9 @@ msgstr "Следующий Срок выполнения"msgid "Next page"msgstr "Следующая страница"+msgid "Next page (in tables)"+msgstr "Следующая страница (в таблицах)"+msgid "Next Sequence"msgstr "Следующая Нумерация"@@ -10652,6 +10676,9 @@ msgstr "Нет запланированной работы в этом окне"msgid "No shifts configured — assuming Mon–Fri, 8h days"msgstr "Смены не настроены — предполагается Пн–Пт, 8ч дни"+msgid "No shortcuts available on this page."+msgstr "На этой странице сочетания клавиш недоступны."+msgid "No single, trusted number for inventory or job status"msgstr "Нет единого надежного показателя для инвентаря или статуса работы"@@ -12014,6 +12041,9 @@ msgstr "Предыдущий день"msgid "Previous page"msgstr "Предыдущая страница"+msgid "Previous page (in tables)"+msgstr "Предыдущая страница (в таблицах)"+msgid "Previous step"msgstr "Предыдущий шаг"@@ -13840,6 +13870,9 @@ msgstr "Сохранить метод"msgid "Save Rate"msgstr "Сохранить курс"+msgid "Save the form you're editing"+msgstr "Сохранить редактируемую форму"+msgid "Save view"msgstr "Сохранить представление"@@ -14710,6 +14743,9 @@ msgstr "Показать ID поставщиков"msgid "Show sync options"msgstr "Показать параметры синхронизации"+msgid "Show this overlay"+msgstr "Показать это наложение"+msgid "Show Trailing Zeros"msgstr "Показывать завершающие нули"@@ -16947,6 +16983,9 @@ msgstr "Переключить уровень"msgid "Toggle Properties"msgstr "Переключить свойства"+msgid "Toggle the sidebar"+msgstr "Переключить боковую панель"+msgid "Toggle views"msgstr "Переключить представления"diff --git a/packages/locale/locales/ru/mes.po b/packages/locale/locales/ru/mes.poindex 3ffab30dc0..c9aa1bb3e0 100644--- a/packages/locale/locales/ru/mes.po+++ b/packages/locale/locales/ru/mes.po@@ -138,6 +138,9 @@ msgstr "Вы уверены, что хотите завершить эту опmsgid "Are you sure you want to leave this page?"msgstr "Вы уверены, что хотите покинуть эту страницу?"+msgid "Assembly steps"+msgstr "Этапы сборки"+msgid "Assigned"msgstr "Назначенные"@@ -536,6 +539,9 @@ msgstr "Завершить с неподобранным материалом?"msgid "Forgot to Clock Out?"msgstr "Забыли отметить окончание работы?"+msgid "General"+msgstr "Общие"+msgid "Go back to operation"msgstr "Вернуться к операции"@@ -633,6 +639,9 @@ msgstr "Производственные заказы"msgid "Keep picking"msgstr "Продолжить отбор"+msgid "Keyboard shortcuts"+msgstr "Клавиатурные сокращения"+msgid "Kit"msgstr "Комплект"@@ -723,6 +732,9 @@ msgstr "Вручную убрать позиции из запасов"msgid "Mark Short"msgstr "Отметить как недостача"+msgid "Mark the step done / record"+msgstr "Отметить этап как завершённый / запись"+msgid "matches"msgstr "соответствует"@@ -766,6 +778,9 @@ msgstr "Мои часы"msgid "Name"msgstr "Имя"+msgid "Navigation"+msgstr "Навигация"+msgid "New"msgstr "Новое"@@ -778,6 +793,9 @@ msgstr "Новые в первую очередь"msgid "Next"msgstr "Далее"+msgid "Next step"+msgstr "Следующий шаг"+msgid "No"msgstr "Нет"@@ -874,6 +892,9 @@ msgstr "Нет серийных номеров"msgid "No serial numbers found"msgstr "Серийные номера не найдены"+msgid "No shortcuts available on this page."+msgstr "На этой странице нет доступных сокращений."+msgid "No spare parts added yet"msgstr "Запасные части ещё не добавлены"@@ -1025,6 +1046,9 @@ msgstr "Назад"msgid "Preventive"msgstr "Предупреждающее"+msgid "Previous step"+msgstr "Предыдущий шаг"+msgid "Print"msgstr "Печать"@@ -1130,6 +1154,9 @@ msgstr "Заказ покупателя"msgid "Save"msgstr "Сохранить"+msgid "Save the form you're editing"+msgstr "Сохранить редактируемую форму"+msgid "Scan"msgstr "Сканировать"@@ -1286,6 +1313,9 @@ msgstr "Недостача"msgid "Short pick {itemName}"msgstr "Короткий отбор {itemName}"+msgid "Show this overlay"+msgstr "Показать это окно"+msgid "Sign in with Google"msgstr "Войти через Google"@@ -1322,6 +1352,9 @@ msgstr "Использованные запасные части"msgid "Start"msgstr "Старт"+msgid "Start or pause the operation"+msgstr "Запустить или приостановить операцию"+msgid "Station User"msgstr "Пользователь станции"@@ -1408,6 +1441,9 @@ msgstr "Отработанное время: {0}"msgid "Today"msgstr "Сегодня"+msgid "Toggle the sidebar"+msgstr "Открыть/закрыть боковую панель"+msgid "Tools"msgstr "Инструменты"diff --git a/packages/locale/locales/tr/erp.po b/packages/locale/locales/tr/erp.poindex 4da396fb53..f83aef466a 100644--- a/packages/locale/locales/tr/erp.po+++ b/packages/locale/locales/tr/erp.po@@ -1143,6 +1143,9 @@ msgstr "Miktarı, fiyatı, nakliyeyi, tedarik süresini ve vergiyi geçersiz kımsgid "Add a domain"msgstr "Alan adı ekle"+msgid "Add a line (in document explorers)"+msgstr "Satır ekle (belge tarayıcılarında)"+msgid "Add a materials section that lists each item on the bill of materials with its quantity."msgstr "Ürün ağacısındaki her stok kartını miktarı ile listeleyen bir bölüm ekleyin"@@ -3616,6 +3619,9 @@ msgstr "Onayla {0}"msgid "Confirm & release"msgstr "Teyit et ve Serbest bırak"+msgid "Confirm a dialog"+msgstr "İletişim kutusunu onayla"+msgid "Confirm all"msgstr "Tümünü onayla"@@ -7637,6 +7643,9 @@ msgstr "Şuraya git: {0}"msgid "Go to implementation hub"msgstr "Uygulama merkezine git"+msgid "Go to module"+msgstr "Modüle git"+msgid "Go to that week"msgstr "O haftaya git"@@ -8701,6 +8710,9 @@ msgstr "Yevmiye satırları"msgid "Journals dated on or before this date are treated as locked. Merged with the provider-reported lock date when both exist."msgstr "Bu tarihte veya öncesinde tarihlendirilen muhasebe fişleri kilitli olarak değerlendirilir. Her ikisi de mevcutsa sağlayıcı tarafından rapor edilen kilit tarihi ile birleştirilir."+msgid "Jump to a section on detail pages (⇧⌘ + the section's letter)"+msgstr "Ayrıntı sayfalarında bir bölüme atla (⇧⌘ + bölümün harfi)"+msgid "Just one"msgstr "Sadece bir"@@ -8743,6 +8755,9 @@ msgstr "Siparişleri, teklifleri ve ayarları ikinci bir kontrolün arkasında tmsgid "Key"msgstr "Anahtar"+msgid "Keyboard shortcuts"+msgstr "Klavye kısayolları"+msgid "Kind of record"msgstr "Kayıt türü"@@ -8966,6 +8981,9 @@ msgstr "Aydınlık"msgid "Light Mode"msgstr "Aydınlık Mod"+msgid "Light or dark mode"+msgstr "Açık veya koyu mod"+msgid "Lights Out (24×7)"msgstr "Işıklar Kapalı (24×7)"@@ -10135,6 +10153,9 @@ msgstr "Yeni Teklif Satırı"msgid "New Receipt"msgstr "Yeni Alış"+msgid "New record (on list pages)"+msgstr "Yeni kayıt (liste sayfalarında)"+msgid "New record created"msgstr "Yeni kayıt oluşturuldu"@@ -10258,6 +10279,9 @@ msgstr "Sonraki Vade Tarihi"msgid "Next page"msgstr "Sonraki sayfa"+msgid "Next page (in tables)"+msgstr "Sonraki sayfa (tablolarda)"+msgid "Next Sequence"msgstr "Sonraki numaralandırma"@@ -10652,6 +10676,9 @@ msgstr "Bu zaman penceresinde planlanmış iş yok"msgid "No shifts configured — assuming Mon–Fri, 8h days"msgstr "Vardiya yapılandırılmadı — Pzt–Cum, 8s günler varsayılıyor"+msgid "No shortcuts available on this page."+msgstr "Bu sayfada kullanılabilir kısayol yok."+msgid "No single, trusted number for inventory or job status"msgstr "Envanter veya iş durumu için tek bir güvenilir sayı yok"@@ -12014,6 +12041,9 @@ msgstr "Önceki Gün"msgid "Previous page"msgstr "Önceki sayfa"+msgid "Previous page (in tables)"+msgstr "Önceki sayfa (tablolarda)"+msgid "Previous step"msgstr "Önceki adım"@@ -13840,6 +13870,9 @@ msgstr "Yöntemi Kaydet"msgid "Save Rate"msgstr "Kuru kaydet"+msgid "Save the form you're editing"+msgstr "Düzenlemekte olduğunuz formu kaydet"+msgid "Save view"msgstr "Görünümü kaydet"@@ -14710,6 +14743,9 @@ msgstr "Tedarikçi Kimliklerini Göster"msgid "Show sync options"msgstr "Senkronizasyon seçeneklerini göster"+msgid "Show this overlay"+msgstr "Bu katmanı göster"+msgid "Show Trailing Zeros"msgstr "Sondaki Sıfırları Göster"@@ -16947,6 +16983,9 @@ msgstr "Seviye değiştir"msgid "Toggle Properties"msgstr "Özellikleri Aç/Kapat"+msgid "Toggle the sidebar"+msgstr "Kenar çubuğunu aç/kapat"+msgid "Toggle views"msgstr "Görünümleri değiştir"diff --git a/packages/locale/locales/tr/mes.po b/packages/locale/locales/tr/mes.poindex a1beb8f6c6..22164e106e 100644--- a/packages/locale/locales/tr/mes.po+++ b/packages/locale/locales/tr/mes.po@@ -138,6 +138,9 @@ msgstr "Bu işlemi bitirmek istediğinizden emin misiniz? Bu, bu işlem için tmsgid "Are you sure you want to leave this page?"msgstr "Bu sayfadan ayrılmak istediğinizden emin misiniz?"+msgid "Assembly steps"+msgstr "Montaj adımları"+msgid "Assigned"msgstr "Atanmış"@@ -536,6 +539,9 @@ msgstr "Malzeme seçilmeden bitir?"msgid "Forgot to Clock Out?"msgstr "İş bitişini unutmuş musunuz?"+msgid "General"+msgstr "Genel"+msgid "Go back to operation"msgstr "İşleme geri dön"@@ -633,6 +639,9 @@ msgstr "İş emirleri"msgid "Keep picking"msgstr "Toplamaya devam et"+msgid "Keyboard shortcuts"+msgstr "Klavye kısayolları"+msgid "Kit"msgstr "Set"@@ -723,6 +732,9 @@ msgstr "Envanterden stok kartlarını manuel kaldır"msgid "Mark Short"msgstr "Kısa Teslim Et"+msgid "Mark the step done / record"+msgstr "Adımı tamamlandı olarak işaretle / kaydet"+msgid "matches"msgstr "eşleşir"@@ -766,6 +778,9 @@ msgstr "Saatlik Çalışmalarım"msgid "Name"msgstr "Adı"+msgid "Navigation"+msgstr "Gezinti"+msgid "New"msgstr "Yeni"@@ -778,6 +793,9 @@ msgstr "En yeniden önce"msgid "Next"msgstr "Sonraki"+msgid "Next step"+msgstr "Sonraki adım"+msgid "No"msgstr "Hayır"@@ -874,6 +892,9 @@ msgstr "Seri numarası yok"msgid "No serial numbers found"msgstr "Seri numarası bulunamadı"+msgid "No shortcuts available on this page."+msgstr "Bu sayfada kullanılabilir kısayol yoktur."+msgid "No spare parts added yet"msgstr "Henüz yedek parça eklenmedi"@@ -1025,6 +1046,9 @@ msgstr "Önceki"msgid "Preventive"msgstr "Önleyici"+msgid "Previous step"+msgstr "Önceki adım"+msgid "Print"msgstr "Yazdır"@@ -1130,6 +1154,9 @@ msgstr "Satış Siparişi"msgid "Save"msgstr "Kaydet"+msgid "Save the form you're editing"+msgstr "Düzenlediğiniz formu kaydetin"+msgid "Scan"msgstr "Tarama"@@ -1286,6 +1313,9 @@ msgstr "Azalt"msgid "Short pick {itemName}"msgstr "Kısmi toplama {itemName}"+msgid "Show this overlay"+msgstr "Bu katmanı göster"+msgid "Sign in with Google"msgstr "Google ile giriş yap"@@ -1322,6 +1352,9 @@ msgstr "Kullanılan Yedek Parçalar"msgid "Start"msgstr "Başlat"+msgid "Start or pause the operation"+msgstr "Operasyonu başlat veya duraklat"+msgid "Station User"msgstr "İstasyon Kullanıcısı"@@ -1408,6 +1441,9 @@ msgstr "Çalışma Süresi: {0}"msgid "Today"msgstr "Bugün"+msgid "Toggle the sidebar"+msgstr "Kenar çubuğunu aç/kapat"+msgid "Tools"msgstr "Araçlar"diff --git a/packages/locale/locales/zh/erp.po b/packages/locale/locales/zh/erp.poindex 496ba7dca3..b08adf911b 100644--- a/packages/locale/locales/zh/erp.po+++ b/packages/locale/locales/zh/erp.po@@ -1143,6 +1143,9 @@ msgstr "添加自定义定价行以覆盖数量、价格、运费、提前期和msgid "Add a domain"msgstr "添加一个域"+msgid "Add a line (in document explorers)"+msgstr "添加一行(在文件浏览器中)"+msgid "Add a materials section that lists each item on the bill of materials with its quantity."msgstr "添加一个列出物料清单上每个物料及其数量的物料部分。"@@ -3616,6 +3619,9 @@ msgstr "确认 {0}"msgid "Confirm & release"msgstr "确认并下达"+msgid "Confirm a dialog"+msgstr "确认对话框"+msgid "Confirm all"msgstr "全部确认"@@ -7637,6 +7643,9 @@ msgstr "前往 {0}"msgid "Go to implementation hub"msgstr "前往实施中心"+msgid "Go to module"+msgstr "转到模块"+msgid "Go to that week"msgstr "跳转到该周"@@ -8701,6 +8710,9 @@ msgstr "日记账行"msgid "Journals dated on or before this date are treated as locked. Merged with the provider-reported lock date when both exist."msgstr "在此日期或之前日期的凭证被视为已锁定。当两者都存在时,与提供商报告的锁定日期合并。"+msgid "Jump to a section on detail pages (⇧⌘ + the section's letter)"+msgstr "跳转到详情页面的某一部分(⇧⌘ + 该部分的字母)"+msgid "Just one"msgstr "仅一个"@@ -8743,6 +8755,9 @@ msgstr "让订单、报价单和设置受到第二道检查的保护"msgid "Key"msgstr "钥匙"+msgid "Keyboard shortcuts"+msgstr "键盘快捷键"+msgid "Kind of record"msgstr "记录类型"@@ -8966,6 +8981,9 @@ msgstr "浅色"msgid "Light Mode"msgstr "浅色模式"+msgid "Light or dark mode"+msgstr "亮色或深色模式"+msgid "Lights Out (24×7)"msgstr "熄灯(24×7)"@@ -10135,6 +10153,9 @@ msgstr "新报价行"msgid "New Receipt"msgstr "新收据"+msgid "New record (on list pages)"+msgstr "新建记录(在列表页面)"+msgid "New record created"msgstr "新记录已创建"@@ -10258,6 +10279,9 @@ msgstr "下次到期日期"msgid "Next page"msgstr "下一页"+msgid "Next page (in tables)"+msgstr "下一页(在表格中)"+msgid "Next Sequence"msgstr "下一个编号规则"@@ -10652,6 +10676,9 @@ msgstr "此时间窗内无排程工作"msgid "No shifts configured — assuming Mon–Fri, 8h days"msgstr "未配置班次——假定周一至周五,每天8小时"+msgid "No shortcuts available on this page."+msgstr "此页面没有可用的快捷键。"+msgid "No single, trusted number for inventory or job status"msgstr "库存管理或工单状态没有单一的可信数字"@@ -12014,6 +12041,9 @@ msgstr "前一天"msgid "Previous page"msgstr "上一页"+msgid "Previous page (in tables)"+msgstr "上一页(在表格中)"+msgid "Previous step"msgstr "上一步骤"@@ -13840,6 +13870,9 @@ msgstr "保存方法"msgid "Save Rate"msgstr "保存汇率"+msgid "Save the form you're editing"+msgstr "保存您正在编辑的表单"+msgid "Save view"msgstr "保存视图"@@ -14710,6 +14743,9 @@ msgstr "显示供应商ID"msgid "Show sync options"msgstr "显示同步选项"+msgid "Show this overlay"+msgstr "显示此覆盖层"+msgid "Show Trailing Zeros"msgstr "显示尾随零"@@ -16947,6 +16983,9 @@ msgstr "切换级别"msgid "Toggle Properties"msgstr "切换属性"+msgid "Toggle the sidebar"+msgstr "切换侧边栏"+msgid "Toggle views"msgstr "切换视图"diff --git a/packages/locale/locales/zh/mes.po b/packages/locale/locales/zh/mes.poindex 6c03f1ae29..b84e5523f4 100644--- a/packages/locale/locales/zh/mes.po+++ b/packages/locale/locales/zh/mes.po@@ -138,6 +138,9 @@ msgstr "您确定要完成此工序吗?这会结束此工序的所有活跃生msgid "Are you sure you want to leave this page?"msgstr "您确定要离开此页面吗?"+msgid "Assembly steps"+msgstr "装配步骤"+msgid "Assigned"msgstr "已分配"@@ -536,6 +539,9 @@ msgstr "物料未拣货的情况下要完成吗?"msgid "Forgot to Clock Out?"msgstr "忘记收工了吗?"+msgid "General"+msgstr "常规"+msgid "Go back to operation"msgstr "返回操作"@@ -633,6 +639,9 @@ msgstr "工单"msgid "Keep picking"msgstr "继续拣货"+msgid "Keyboard shortcuts"+msgstr "键盘快捷键"+msgid "Kit"msgstr "套件"@@ -723,6 +732,9 @@ msgstr "手动从库存管理中移除物料"msgid "Mark Short"msgstr "标记短缺"+msgid "Mark the step done / record"+msgstr "标记步骤完成/记录"+msgid "matches"msgstr "匹配"@@ -766,6 +778,9 @@ msgstr "我的工时"msgid "Name"msgstr "名称"+msgid "Navigation"+msgstr "导航"+msgid "New"msgstr "新建"@@ -778,6 +793,9 @@ msgstr "最新优先"msgid "Next"msgstr "下一个"+msgid "Next step"+msgstr "下一步骤"+msgid "No"msgstr "否"@@ -874,6 +892,9 @@ msgstr "无序列号"msgid "No serial numbers found"msgstr "未找到序列号"+msgid "No shortcuts available on this page."+msgstr "此页面上无可用的快捷键。"+msgid "No spare parts added yet"msgstr "尚未添加备件"@@ -1025,6 +1046,9 @@ msgstr "上一个"msgid "Preventive"msgstr "预防性"+msgid "Previous step"+msgstr "上一步骤"+msgid "Print"msgstr "打印"@@ -1130,6 +1154,9 @@ msgstr "销售订单"msgid "Save"msgstr "保存"+msgid "Save the form you're editing"+msgstr "保存您正在编辑的表单"+msgid "Scan"msgstr "扫码"@@ -1286,6 +1313,9 @@ msgstr "缺货"msgid "Short pick {itemName}"msgstr "短缺拣货 {itemName}"+msgid "Show this overlay"+msgstr "显示此覆盖层"+msgid "Sign in with Google"msgstr "使用 Google 登录"@@ -1322,6 +1352,9 @@ msgstr "已使用备件"msgid "Start"msgstr "开始"+msgid "Start or pause the operation"+msgstr "开始或暂停工序"+msgid "Station User"msgstr "工位用户"@@ -1408,6 +1441,9 @@ msgstr "工作时间:{0}"msgid "Today"msgstr "今天"+msgid "Toggle the sidebar"+msgstr "切换侧栏"+msgid "Tools"msgstr "工具"diff --git a/packages/react/AGENTS.md b/packages/react/AGENTS.mdindex ca959917da..763e8ec7cf 100644--- a/packages/react/AGENTS.md+++ b/packages/react/AGENTS.md@@ -36,7 +36,9 @@ pnpm --filter @carbon/react lintimport { Button, Card, HStack, VStack, IconButton, cn } from "@carbon/react";```-- **Button** variants: `primary | secondary | solid | active | destructive | ghost | outline | link`; sizes: `sm | md | lg`+- **Button** variants: `primary | secondary | solid | active | destructive | ghost | outline | link`; sizes: `sm | md | lg`; `shortcut` / `hideShortcutKey` / `shortcutGuard` bind a hotkey with a keycap badge (topmost-dialog guarded)+- **Shortcuts**: combos are named constants — shared `SHORTCUTS` in `src/shortcuts.ts`, never string literals at call sites. `useShortcutKeys` (one binding) and `useShortcutKeyMap` (entries array, dev-warns on duplicates) both delegate to react-hotkeys-hook — never add a hand-rolled keydown listener; `useShortcutSequence` (`g`-then-letter) is the lone exception (no library sequence support). `isEditableTarget` (the one editable-target check), `ShortcutHelpOverlay` (the `?` overlay; apps declare entries). Enter vs ⌘Enter and badge visibility are design decisions — see `.claude/rules/conventions-ui.md` § Keyboard shortcuts+- **Choice screens**: `ChoiceCardGroup` (card radios, `autoFocus` focuses the selected card) and `RadioGroupButton` (radio styled as a secondary Button) give one tab stop + arrow-key select; Enter stays free for the screen's continue action- **Layout**: `VStack` / `HStack` with numeric `spacing` prop (maps to `space-y-*`/`space-x-*`)- **Overlays**: `Drawer`, `Modal`, `ModalDrawer` (unified drawer/modal), `BottomSheet`, `Popover`- **Data**: `Table` (TanStack), chart components via sub-exports (`@carbon/react/Chart`)diff --git a/packages/react/src/Button.tsx b/packages/react/src/Button.tsxindex 509ae79ac2..e521c5ddf5 100644--- a/packages/react/src/Button.tsx+++ b/packages/react/src/Button.tsx@@ -137,6 +137,8 @@ export interface ButtonPropsshortcut?: ShortcutInput | ShortcutInput[];/** Keep the hotkey active but hide the visual key badge. */hideShortcutKey?: boolean;+ /** Extra guard AND-composed with the built-in topmost-dialog guard. */+ shortcutGuard?: (event: KeyboardEvent) => boolean;}const Button = forwardRef<HTMLButtonElement, ButtonProps>(@@ -154,6 +156,7 @@ const Button = forwardRef<HTMLButtonElement, ButtonProps>(rightIcon,shortcut,hideShortcutKey = false,+ shortcutGuard,children,...props},@@ -170,8 +173,10 @@ const Button = forwardRef<HTMLButtonElement, ButtonProps>(// to their shortcut — a background (or outer-dialog) ⌘S must not fire// under a confirmation modal stacked on top.const dialogGuard = useCallback(- () => !hasOpenDialog() || isInsideTopmostDialog(innerRef.current),- []+ (event: KeyboardEvent) =>+ (!hasOpenDialog() || isInsideTopmostDialog(innerRef.current)) &&+ (shortcutGuard?.(event) ?? true),+ [shortcutGuard]);// Ref-click (not a direct onClick call) so type="submit" buttons submitdiff --git a/packages/react/src/ChoiceCard.tsx b/packages/react/src/ChoiceCard.tsxindex 7be411ccaf..62e3ce54e7 100644--- a/packages/react/src/ChoiceCard.tsx+++ b/packages/react/src/ChoiceCard.tsx@@ -1,4 +1,4 @@-import { type ReactNode, useId } from "react";+import { type ReactNode, useEffect, useId, useRef } from "react";import { RadioGroup, RadioGroupItem } from "./Radio";import { cn } from "./utils/cn";@@ -33,6 +33,11 @@ type ChoiceCardGroupProps<V extends string = string> = {* `"row"` lays them out horizontally with equal-width columns.*/direction?: "row" | "column";+ /**+ * Focus the selected card (falling back to the first) on mount, so a+ * choice screen is immediately arrow-key navigable without a Tab first.+ */+ autoFocus?: boolean;/** Extra classes for the wrapping `<div>`. */className?: string;};@@ -61,9 +66,21 @@ export function ChoiceCardGroup<V extends string = string>({onChange,options,direction = "column",+ autoFocus = false,className}: ChoiceCardGroupProps<V>) {const groupId = useId();+ const groupRef = useRef<HTMLDivElement>(null);++ // biome-ignore lint/correctness/useExhaustiveDependencies: mount-only focus+ useEffect(() => {+ if (!autoFocus) return;+ const radio =+ groupRef.current?.querySelector<HTMLElement>(+ '[role="radio"][data-state="checked"]'+ ) ?? groupRef.current?.querySelector<HTMLElement>('[role="radio"]');+ radio?.focus();+ }, []);return (<div className={cn("space-y-2 w-full", className)}>@@ -73,6 +90,7 @@ export function ChoiceCardGroup<V extends string = string>({</span>)}<RadioGroup+ ref={groupRef}value={value}onValueChange={(v) => onChange(v as V)}className={cn(diff --git a/packages/react/src/Radio.tsx b/packages/react/src/Radio.tsxindex fe3de92438..915922680b 100644--- a/packages/react/src/Radio.tsx+++ b/packages/react/src/Radio.tsx@@ -5,6 +5,7 @@ import type { ComponentPropsWithoutRef, ElementRef } from "react";import { forwardRef } from "react";import { LuCircle } from "react-icons/lu";+import { buttonVariants } from "./Button";import { cn } from "./utils/cn";const RadioGroup = forwardRef<@@ -42,4 +43,32 @@ const RadioGroupItem = forwardRef<});RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;-export { RadioGroup, RadioGroupItem };+/**+ * A radio option styled as a secondary Button — for choice screens where the+ * options should read as buttons but behave as a radio group (one tab stop,+ * arrow keys move AND select, Enter left free for the screen's continue+ * action — Radix prevents Enter from activating a radio). Children render+ * inline; there is no circle indicator, so express the checked state via+ * `data-[state=checked]:*` classes at the call site.+ */+const RadioGroupButton = forwardRef<+ ElementRef<typeof RadioGroupPrimitive.Item>,+ ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>+>(({ className, children, ...props }, ref) => {+ return (+ <RadioGroupPrimitive.Item+ ref={ref}+ className={cn(+ buttonVariants({ variant: "secondary", size: "md" }),+ "gap-2 px-4",+ className+ )}+ {...props}+ >+ {children}+ </RadioGroupPrimitive.Item>+ );+});+RadioGroupButton.displayName = "RadioGroupButton";++export { RadioGroup, RadioGroupButton, RadioGroupItem };diff --git a/packages/react/src/ShortcutHelpOverlay.tsx b/packages/react/src/ShortcutHelpOverlay.tsxnew file mode 100644index 0000000000..be796af767--- /dev/null+++ b/packages/react/src/ShortcutHelpOverlay.tsx@@ -0,0 +1,123 @@+import { Fragment, useMemo, useState } from "react";+import type { ShortcutInput } from "./hooks/useShortcutKeys";+import { useShortcutKeyMap } from "./hooks/useShortcutKeys";+import {+ Modal,+ ModalBody,+ ModalContent,+ ModalHeader,+ ModalOverlay,+ ModalTitle+} from "./Modal";+import { ShortcutKey } from "./ShortcutKey";+import { SHORTCUTS } from "./shortcuts";++export type ShortcutHelpEntry = {+ /** Rendered as keycaps. A `string[]` means a sequence ("g" then "s"). */+ shortcut: ShortcutInput | string[];+ /** Translated by the app. */+ description: string;+ /** Translated section heading; groups render in first-seen order. */+ group: string;+};++type ShortcutHelpOverlayProps = {+ title: string;+ entries: ShortcutHelpEntry[];+ emptyLabel: string;+};++/**+ * Keycap(s) for one help entry — sequences render as chained keycaps with a+ * visual separator, so the apps only declare data, never row markup.+ */+export function ShortcutHelpKeys({+ shortcut+}: {+ shortcut: ShortcutInput | string[];+}) {+ if (Array.isArray(shortcut)) {+ return (+ <span className="inline-flex items-center gap-1">+ {shortcut.map((part, index) => (+ <Fragment key={`${part}-${index}`}>+ {index > 0 && (+ <span aria-hidden className="text-xs text-muted-foreground">+ →+ </span>+ )}+ <ShortcutKey shortcut={part} variant="small" />+ </Fragment>+ ))}+ </span>+ );+ }+ return <ShortcutKey shortcut={shortcut} variant="small" />;+}++/**+ * The `?` shortcut help overlay. Entries are declared by the app from its+ * central shortcut definition files — there is deliberately no runtime+ * registry. Inert while any dialog is open or while typing (map semantics).+ */+export function ShortcutHelpOverlay({+ title,+ entries,+ emptyLabel+}: ShortcutHelpOverlayProps) {+ const [open, setOpen] = useState(false);++ useShortcutKeyMap(+ useMemo(+ () => [{ shortcut: SHORTCUTS.help, action: () => setOpen(true) }],+ []+ )+ );++ const groups = useMemo(() => {+ const byGroup = new Map<string, ShortcutHelpEntry[]>();+ for (const entry of entries) {+ const list = byGroup.get(entry.group) ?? [];+ list.push(entry);+ byGroup.set(entry.group, list);+ }+ return [...byGroup.entries()];+ }, [entries]);++ return (+ <Modal open={open} onOpenChange={setOpen}>+ <ModalOverlay />+ <ModalContent>+ <ModalHeader>+ <ModalTitle>{title}</ModalTitle>+ </ModalHeader>+ <ModalBody>+ {groups.length === 0 ? (+ <p className="text-sm text-muted-foreground">{emptyLabel}</p>+ ) : (+ <div className="flex flex-col gap-4">+ {groups.map(([group, groupEntries]) => (+ <div key={group}>+ <h3 className="mb-2 text-sm font-medium text-muted-foreground">+ {group}+ </h3>+ <ul className="flex flex-col gap-1.5">+ {groupEntries.map((entry, index) => (+ <li+ key={`${entry.description}-${index}`}+ className="flex items-center justify-between gap-4 text-sm"+ >+ <span>{entry.description}</span>+ <ShortcutHelpKeys shortcut={entry.shortcut} />+ </li>+ ))}+ </ul>+ </div>+ ))}+ </div>+ )}+ </ModalBody>+ </ModalContent>+ </Modal>+ );+}diff --git a/packages/react/src/ShortcutKey.tsx b/packages/react/src/ShortcutKey.tsxindex eec03f5f79..7263275302 100644--- a/packages/react/src/ShortcutKey.tsx+++ b/packages/react/src/ShortcutKey.tsx@@ -20,9 +20,9 @@ import { cn } from "./utils/cn";export const shortcutKeyVariants = {small:- "flex h-4 min-w-4 items-center justify-center gap-0.5 rounded-[3px] border border-current/25 bg-white/10 px-1 ml-1.5 -mr-0.5 text-[0.65rem] font-medium uppercase text-current/80 shadow-sm backdrop-blur-sm",+ "flex h-4.5 min-w-4.5 items-center justify-center gap-0.5 rounded-[3px] border border-current/10 bg-white/10 px-1 ml-1.5 -mr-0.5 text-[0.65rem] font-medium uppercase text-current/80 shadow-xs backdrop-blur-sm",medium:- "flex h-4.5 min-w-4.5 items-center justify-center gap-0.5 rounded-[3px] border border-current/25 bg-white/10 px-1 ml-1.5 -mr-0.5 text-[0.75rem] font-medium uppercase text-current/80 shadow-sm backdrop-blur-sm"+ "flex h-5 min-w-5 items-center justify-center gap-0.5 rounded-[3px] border border-current/10 bg-white/10 px-1 ml-1.5 -mr-0.5 text-[0.75rem] font-medium uppercase text-current/80 shadow-xs backdrop-blur-sm"};export type ShortcutKeyVariant = keyof typeof shortcutKeyVariants;@@ -39,7 +39,8 @@ export const SHORTCUT_KEY_ICON_MAP: Partial<Record<string, IconType>> = {arrowup: LuChevronUp,arrowdown: LuChevronDown,arrowleft: LuChevronLeft,- arrowright: LuChevronRight+ arrowright: LuChevronRight,+ command: LuCommand};type ShortcutKeyProps = {diff --git a/packages/react/src/Sidebar.tsx b/packages/react/src/Sidebar.tsxindex 1d16687beb..f6411e5841 100644--- a/packages/react/src/Sidebar.tsx+++ b/packages/react/src/Sidebar.tsx@@ -8,10 +8,12 @@ import { LuPanelLeft } from "react-icons/lu";import type { Button } from "./Button";import { Drawer, DrawerContent } from "./Drawer";import { useIsMobile } from "./hooks";+import { useShortcutKeys } from "./hooks/useShortcutKeys";import { IconButton } from "./IconButton";import { Input } from "./Input";import { Separator } from "./Separator";import { Skeleton } from "./Skeleton";+import { SHORTCUTS } from "./shortcuts";import {Tooltip,TooltipContent,@@ -26,7 +28,6 @@ const SIDEBAR_WIDTH = "16rem";const SIDEBAR_WIDTH_MOBILE = "18rem";const SIDEBAR_WIDTH_ICON = "3rem";const SIDEBAR_WIDTH_ICON_TOUCH = "4rem";-const SIDEBAR_KEYBOARD_SHORTCUT = "b";type SidebarContext = {state: "expanded" | "collapsed";@@ -103,21 +104,14 @@ const SidebarProvider = React.forwardRef<: setOpen((open) => !open);}, [isMobile, setOpen, setOpenMobile]);- // Adds a keyboard shortcut to toggle the sidebar.- React.useEffect(() => {- const handleKeyDown = (event: KeyboardEvent) => {- if (- event.key === SIDEBAR_KEYBOARD_SHORTCUT &&- (event.metaKey || event.ctrlKey)- ) {- event.preventDefault();- toggleSidebar();- }- };-- window.addEventListener("keydown", handleKeyDown);- return () => window.removeEventListener("keydown", handleKeyDown);- }, [toggleSidebar]);+ // Inert while typing in a field (hook default).+ useShortcutKeys({+ shortcut: SHORTCUTS.sidebarToggle,+ action: (event) => {+ event.preventDefault();+ toggleSidebar();+ }+ });// We add a state so that we can do data-state="expanded" or "collapsed".// This makes it easier to style the sidebar with Tailwind classes.diff --git a/packages/react/src/__tests__/useShortcutKeys.test.ts b/packages/react/src/__tests__/useShortcutKeys.test.tsindex 4367868331..f608b41d02 100644--- a/packages/react/src/__tests__/useShortcutKeys.test.ts+++ b/packages/react/src/__tests__/useShortcutKeys.test.ts@@ -1,5 +1,6 @@import { describe, expect, it } from "vitest";import {+ canonicalCombo,KeyboardKeys,parseShortcut,resolveShortcutKeys@@ -100,3 +101,36 @@ describe("parseShortcut", () => {expect(parseShortcut(definition, false)).toEqual(definition.windows);});});++describe("canonicalCombo", () => {+ // The canonical form must mirror react-hotkeys-hook's internal `mapKey`+ // normalization (`Key`/`Digit`/`Numpad`/`Arrow` prefixes stripped), because+ // useShortcutKeyMap dispatches by matching a combo string's canonical form+ // against the parsed hotkey the library hands back to the handler.+ it("orders modifier flags alt,ctrl,meta,mod,shift", () => {+ expect(canonicalCombo("mod+enter")).toBe("00010:enter");+ expect(canonicalCombo("shift+alt+enter")).toBe("10001:enter");+ expect(canonicalCombo("meta+ctrl+k")).toBe("01100:k");+ });++ it("is case- and whitespace-insensitive", () => {+ expect(canonicalCombo("mod+S")).toBe(canonicalCombo("mod+s"));+ expect(canonicalCombo("mod + s")).toBe(canonicalCombo("mod+s"));+ });++ it("normalizes arrow keys the way the library does", () => {+ expect(canonicalCombo("arrowleft")).toBe("00000:left");+ expect(canonicalCombo("arrowright")).toBe("00000:right");+ });++ it("keeps named keys and digits as-is", () => {+ expect(canonicalCombo("alt+1")).toBe("10000:1");+ expect(canonicalCombo("shift+slash")).toBe("00001:slash");+ expect(canonicalCombo("space")).toBe("00000:space");+ expect(canonicalCombo("escape")).toBe("00000:escape");+ });++ it("treats a lone modifier-looking token as a flag with no key", () => {+ expect(canonicalCombo("mod")).toBe("00010:");+ });+});diff --git a/packages/react/src/__tests__/useShortcutSequence.test.ts b/packages/react/src/__tests__/useShortcutSequence.test.tsnew file mode 100644index 0000000000..efb8687537--- /dev/null+++ b/packages/react/src/__tests__/useShortcutSequence.test.ts@@ -0,0 +1,67 @@+import { describe, expect, it } from "vitest";+import type { SequenceState } from "../hooks/useShortcutSequence";+import { sequenceStep } from "../hooks/useShortcutSequence";++const config = { prefix: "g", keys: new Set(["s", "p"]) };+const idle: SequenceState = { armedAt: null, lastPrintableAt: null };++const key = (+ k: string,+ modifiers: Partial<Pick<KeyboardEvent, "metaKey" | "ctrlKey" | "altKey">> = {}+) => ({ key: k, metaKey: false, ctrlKey: false, altKey: false, ...modifiers });++describe("sequenceStep", () => {+ it("arms on the bare prefix, then matches a map key", () => {+ const armed = sequenceStep(idle, key("g"), 1000, config);+ expect(armed.state.armedAt).toBe(1000);+ expect(armed.match).toBeUndefined();++ const matched = sequenceStep(armed.state, key("s"), 1200, config);+ expect(matched.match).toBe("s");+ expect(matched.state.armedAt).toBeNull();+ });++ it("does not match after the timeout window", () => {+ const armed = sequenceStep(idle, key("g"), 1000, config);+ const late = sequenceStep(armed.state, key("s"), 2600, config);+ expect(late.match).toBeUndefined();+ });++ it("a non-matching key (Escape included) disarms without matching", () => {+ const armed = sequenceStep(idle, key("g"), 1000, config);+ const disarmed = sequenceStep(armed.state, key("Escape"), 1100, config);+ expect(disarmed.match).toBeUndefined();+ expect(disarmed.state.armedAt).toBeNull();+ const after = sequenceStep(disarmed.state, key("s"), 1200, config);+ expect(after.match).toBeUndefined();+ });++ it("any modifier disarms and never arms", () => {+ const armed = sequenceStep(idle, key("g"), 1000, config);+ const modified = sequenceStep(+ armed.state,+ key("s", { metaKey: true }),+ 1100,+ config+ );+ expect(modified.match).toBeUndefined();+ expect(modified.state.armedAt).toBeNull();++ const noArm = sequenceStep(idle, key("g", { ctrlKey: true }), 1000, config);+ expect(noArm.state.armedAt).toBeNull();+ });++ it("ignores a prefix arriving inside a scanner burst", () => {+ const typed = sequenceStep(idle, key("x"), 1000, config);+ const burstPrefix = sequenceStep(typed.state, key("g"), 1020, config);+ expect(burstPrefix.state.armedAt).toBeNull();++ const humanPrefix = sequenceStep(typed.state, key("g"), 1400, config);+ expect(humanPrefix.state.armedAt).toBe(1400);+ });++ it("matching is case-insensitive on the incoming key", () => {+ const armed = sequenceStep(idle, key("g"), 1000, config);+ expect(sequenceStep(armed.state, key("S"), 1100, config).match).toBe("s");+ });+});diff --git a/packages/react/src/hooks/index.ts b/packages/react/src/hooks/index.tsindex 92510f008e..984b5beae3 100644--- a/packages/react/src/hooks/index.ts+++ b/packages/react/src/hooks/index.ts@@ -7,7 +7,6 @@ import useInitialDimensions from "./useInitialDimenions";import { useInterval } from "./useInterval";import useIsMobile from "./useIsMobile";import { useIsomorphicLayoutEffect } from "./useIsomorphicLayoutEffect";-import useKeyboardShortcuts from "./useKeyboardShortcuts";import { useKeyboardWedge } from "./useKeyboardWedge";import useLocalStorage from "./useLocalStorage";import { useMode, useOptimisticMode } from "./useMode";@@ -17,11 +16,11 @@ import { useNProgress } from "./useNProgress";import { useOptimisticLocation } from "./useOptimisticLocation";import useOutsideClick from "./useOutsideClick";import { usePlan } from "./usePlan";-import { usePrettifyShortcut } from "./usePrettifyShortcut";import { useRealtimeChannel } from "./useRealtimeChannel";import { useRouteData } from "./useRouteData";import type { Shortcut, ShortcutDefinition } from "./useShortcutKeys";-import { useShortcutKeys } from "./useShortcutKeys";+import { useShortcutKeyMap, useShortcutKeys } from "./useShortcutKeys";+import { useShortcutSequence } from "./useShortcutSequence";import useThrottle from "./useThrottle";import { useUrlParams } from "./useUrlParams";@@ -35,7 +34,6 @@ export {useInterval,useIsMobile,useIsomorphicLayoutEffect,- useKeyboardShortcuts,useKeyboardWedge,useLocalStorage,useMode,@@ -46,10 +44,11 @@ export {useOptimisticMode,useOutsideClick,usePlan,- usePrettifyShortcut,useRealtimeChannel,useRouteData,+ useShortcutKeyMap,useShortcutKeys,+ useShortcutSequence,useThrottle,useUrlParams};diff --git a/packages/react/src/hooks/useKeyboardShortcuts.ts b/packages/react/src/hooks/useKeyboardShortcuts.tsdeleted file mode 100644index a017d4656e..0000000000--- a/packages/react/src/hooks/useKeyboardShortcuts.ts+++ /dev/null@@ -1,68 +0,0 @@-import { useEffect, useState } from "react";--function includes(array: string[], element: string) {- return array.indexOf(element) >= 0;-}--export default function useKeyboardShortcuts(keyMap: {- [id: string]: (event: KeyboardEvent) => void;-}) {- const [lastKeydown, setLastKeydown] = useState<string | null>();-- const handleKeydown = (event: any) => {- if (- !keyMap ||- includes(["INPUT", "TEXTAREA", "SELECT"], event.target.nodeName) ||- event.target.classList.contains("ProseMirror")- ) {- return;- }-- const keyPressed = getKeyPresses(event);-- if (keyMap[keyPressed]) {- /**- * combined keymap will trigger action on KeyDown event- * while single keymap will trigger action on KeyUp event- */- if (keyPressed.includes("+")) {- event.preventDefault();- keyMap[keyPressed](event);- setLastKeydown(null);- } else {- setLastKeydown(event.key);- event.preventDefault();- }- }- };-- const handleKeyup = (event: any) => {- if (!keyMap) return;-- if (keyMap[event.key] && lastKeydown === event.key) {- event.preventDefault();- keyMap[event.key]!(event);- setLastKeydown(null);- }- };-- function getKeyPresses(event: KeyboardEvent) {- const commandKey = event.metaKey || event.ctrlKey;- return commandKey && event.shiftKey- ? `Command+Shift+${event.key.toLowerCase()}`- : commandKey- ? `Command+${event.key}`- : event.shiftKey && event.key === "Enter"- ? `Shift+${event.key}`- : event.key;- }-- useEffect(() => {- window.addEventListener("keydown", handleKeydown);- window.addEventListener("keyup", handleKeyup);- return () => {- window.removeEventListener("keydown", handleKeydown);- window.removeEventListener("keyup", handleKeyup);- };- });-}diff --git a/packages/react/src/hooks/usePrettifyShortcut.ts b/packages/react/src/hooks/usePrettifyShortcut.tsdeleted file mode 100644index 6bf9852239..0000000000--- a/packages/react/src/hooks/usePrettifyShortcut.ts+++ /dev/null@@ -1,8 +0,0 @@-import { prettifyKeyboardShortcut } from "@carbon/utils";-import { useOperatingSystem } from "../OperatingSystem";--export function usePrettifyShortcut() {- const { platform } = useOperatingSystem();- const isMac = platform === "mac";- return (input: string) => prettifyKeyboardShortcut(input, isMac);-}diff --git a/packages/react/src/hooks/useShortcutKeys.ts b/packages/react/src/hooks/useShortcutKeys.tsindex 19244a99ff..9eaee124b7 100644--- a/packages/react/src/hooks/useShortcutKeys.ts+++ b/packages/react/src/hooks/useShortcutKeys.ts@@ -1,5 +1,8 @@+import { useCallback, useMemo, useRef } from "react";import { useHotkeys } from "react-hotkeys-hook";import { useOperatingSystem } from "../OperatingSystem";+import { hasOpenDialog } from "../utils/dialog";+import { isEditableTarget } from "../utils/keyboard";export type Modifier = "alt" | "ctrl" | "meta" | "shift" | "mod";@@ -156,6 +159,113 @@ export function resolveShortcutKeys(});}+export type ShortcutKeyMapEntry = {+ shortcut: ShortcutInput;+ action: (event: KeyboardEvent) => void;+};++/**+ * react-hotkeys-hook normalizes hotkey names and `event.code` values with this+ * exact replacement (its internal `mapKey`, not exported), which is how it+ * matches physical keys — `Digit1` → `"1"`, `KeyN` → `"n"`, `ArrowLeft` →+ * `"left"`. Mirrored here (pure, exported for tests) so a combo string can be+ * canonicalized to the same form the library hands back to a handler, letting+ * one `useHotkeys` registration dispatch to many entries.+ */+export function canonicalCombo(combo: string): string {+ const flags = { alt: 0, ctrl: 0, meta: 0, mod: 0, shift: 0 };+ const keys: string[] = [];+ for (const raw of combo.toLowerCase().split("+")) {+ const token = raw.trim();+ if (!token) continue;+ if (token in flags) {+ flags[token as keyof typeof flags] = 1;+ } else {+ keys.push(token.replace(/key|digit|numpad|arrow/, ""));+ }+ }+ return `${flags.alt}${flags.ctrl}${flags.meta}${flags.mod}${flags.shift}:${keys.join("+")}`;+}++/** The matched-hotkey shape react-hotkeys-hook passes to a handler. */+type MatchedHotkey = {+ alt?: boolean;+ ctrl?: boolean;+ meta?: boolean;+ mod?: boolean;+ shift?: boolean;+ keys?: readonly string[];+};++function canonicalMatchedHotkey(hotkey: MatchedHotkey): string {+ return `${+!!hotkey.alt}${+!!hotkey.ctrl}${+!!hotkey.meta}${+!!hotkey.mod}${+!!hotkey.shift}:${(hotkey.keys ?? []).join("+")}`;+}++/**+ * Bind many page-level shortcuts to many actions — the collision-proof+ * replacement for the deleted legacy `useKeyboardShortcuts` record API.+ * Delegates matching to react-hotkeys-hook (one registration for all combos,+ * dispatched by canonical combo), so its input/contentEditable handling and+ * physical-key (`event.code`) matching apply — ⌥1 emitting `"¡"` on mac and+ * shift+/ emitting `"?"` both still match. On top of the library: skips open+ * dialogs and richer editable targets (cmdk, listbox/menu typeahead), and+ * duplicate combos warn loudly instead of silently overwriting each other,+ * which is how a duplicate ⌘⇧P binding went unnoticed for years.+ */+export function useShortcutKeyMap(+ entries: ReadonlyArray<ShortcutKeyMapEntry>,+ options?: { disabled?: boolean }+) {+ const { platform } = useOperatingSystem();+ const isMac = platform === "mac";++ const disabledRef = useRef(options?.disabled ?? false);+ disabledRef.current = options?.disabled ?? false;++ const { byCombo, combos } = useMemo(() => {+ const byCombo = new Map<string, ShortcutKeyMapEntry>();+ const combos: string[] = [];+ entries.forEach((entry, index) => {+ for (const combo of resolveShortcutKeys(entry.shortcut, isMac)) {+ const canonical = canonicalCombo(combo);+ if (byCombo.has(canonical)) {+ // biome-ignore lint/suspicious/noConsole: loud duplicate-combo warning is the point+ console.warn(+ `useShortcutKeyMap: duplicate combo "${combo}" (entry ${index}) — only fix is at the caller; duplicates are a bug, not a tiebreak.`+ );+ continue;+ }+ byCombo.set(canonical, entry);+ combos.push(combo);+ }+ });+ return { byCombo, combos };+ }, [entries, isMac]);+ const byComboRef = useRef(byCombo);+ byComboRef.current = byCombo;++ // Guarded via the handler + a preventDefault FUNCTION, not the `enabled`+ // option: react-hotkeys-hook prevents/stops a matched event BEFORE it+ // consults `enabled`, so a boolean preventDefault would swallow keys (e.g.+ // arrows while a dialog is open) that should stay completely untouched.+ const guardsPass = useCallback(+ (event: KeyboardEvent) =>+ !disabledRef.current &&+ !hasOpenDialog() &&+ !isEditableTarget(event.target),+ []+ );+ const handler = useCallback(+ (event: KeyboardEvent, hotkey: MatchedHotkey) => {+ if (!guardsPass(event)) return;+ byComboRef.current.get(canonicalMatchedHotkey(hotkey))?.action(event);+ },+ [guardsPass]+ );++ useHotkeys(combos, handler, { preventDefault: guardsPass });+}+export function useShortcutKeys({shortcut,action,diff --git a/packages/react/src/hooks/useShortcutSequence.ts b/packages/react/src/hooks/useShortcutSequence.tsnew file mode 100644index 0000000000..32d0900b4b--- /dev/null+++ b/packages/react/src/hooks/useShortcutSequence.ts@@ -0,0 +1,105 @@+import { useEffect, useRef } from "react";+import { hasOpenDialog } from "../utils/dialog";+import { isEditableTarget } from "../utils/keyboard";++const SEQUENCE_TIMEOUT_MS = 1500;+/** Two printable keys closer than this are a scanner burst, not a human chord. */+const SCANNER_BURST_MS = 50;++export type SequenceState = {+ /** When the prefix armed the sequence, or null while disarmed. */+ armedAt: number | null;+ /** Timestamp of the last printable keydown — the scanner-burst detector. */+ lastPrintableAt: number | null;+};++type SequenceEvent = Pick<+ KeyboardEvent,+ "key" | "metaKey" | "ctrlKey" | "altKey"+>;++/**+ * Pure state step for a two-key sequence ("g" then a letter) — exported for+ * tests. Rules: any modifier disarms; while armed, a key in `keys` matches and+ * disarms, any other key (Escape included) just disarms; the bare prefix arms+ * unless it arrived inside a scanner burst (see `useKeyboardWedge` — barcode+ * scanners type printable characters faster than any human).+ */+export function sequenceStep(+ state: SequenceState,+ event: SequenceEvent,+ now: number,+ config: { prefix: string; keys: ReadonlySet<string> }+): { state: SequenceState; match?: string } {+ if (event.metaKey || event.ctrlKey || event.altKey) {+ return { state: { ...state, armedAt: null } };+ }+ const key = event.key.toLowerCase();+ const lastPrintableAt = key.length === 1 ? now : state.lastPrintableAt;+ const armed =+ state.armedAt !== null && now - state.armedAt <= SEQUENCE_TIMEOUT_MS;+ if (armed) {+ if (config.keys.has(key)) {+ return { state: { armedAt: null, lastPrintableAt }, match: key };+ }+ return { state: { armedAt: null, lastPrintableAt } };+ }+ if (key === config.prefix) {+ const burst =+ state.lastPrintableAt !== null &&+ now - state.lastPrintableAt < SCANNER_BURST_MS;+ return { state: { armedAt: burst ? null : now, lastPrintableAt } };+ }+ return { state: { armedAt: null, lastPrintableAt } };+}++/**+ * Two-key sequence shortcuts (`prefix` then a `map` key — e.g. `g` then `s`+ * for Sales). react-hotkeys-hook has no sequence support, so this is a plain+ * document listener. Inert in editable targets and while a dialog is open;+ * map keys must be lowercase single characters.+ */+export function useShortcutSequence({+ prefix,+ map,+ disabled = false+}: {+ prefix: string;+ map: Record<string, () => void>;+ disabled?: boolean;+}) {+ const stateRef = useRef<SequenceState>({+ armedAt: null,+ lastPrintableAt: null+ });+ const mapRef = useRef(map);+ mapRef.current = map;+ const prefixRef = useRef(prefix);+ prefixRef.current = prefix;+ const disabledRef = useRef(disabled);+ disabledRef.current = disabled;++ useEffect(() => {+ const onKeyDown = (event: KeyboardEvent) => {+ if (+ disabledRef.current ||+ hasOpenDialog() ||+ isEditableTarget(event.target)+ ) {+ stateRef.current = { ...stateRef.current, armedAt: null };+ return;+ }+ const result = sequenceStep(stateRef.current, event, Date.now(), {+ prefix: prefixRef.current,+ keys: new Set(Object.keys(mapRef.current))+ });+ stateRef.current = result.state;+ if (result.match) {+ event.preventDefault();+ mapRef.current[result.match]?.();+ }+ };+ document.addEventListener("keydown", onKeyDown);+ return () => document.removeEventListener("keydown", onKeyDown);+ }, []);+}diff --git a/packages/react/src/index.tsx b/packages/react/src/index.tsxindex 74f9c7c8be..dc6b8af53a 100644--- a/packages/react/src/index.tsx+++ b/packages/react/src/index.tsx@@ -156,9 +156,10 @@ import type {Modifier,Shortcut,ShortcutDefinition,- ShortcutInput+ ShortcutInput,+ ShortcutKeyMapEntry} from "./hooks/useShortcutKeys";-import { KeyboardKeys } from "./hooks/useShortcutKeys";+import { KeyboardKeys, useShortcutKeyMap } from "./hooks/useShortcutKeys";import { IconButton } from "./IconButton";import type { InputProps } from "./Input";import {@@ -263,7 +264,7 @@ import {} from "./Popover";import { Progress } from "./Progress";import { PulsingDot } from "./PulsingDot";-import { RadioGroup, RadioGroupItem } from "./Radio";+import { RadioGroup, RadioGroupButton, RadioGroupItem } from "./Radio";import {ResizableHandle,ResizablePanel,@@ -283,6 +284,8 @@ import {SelectValue} from "./Select";import { Separator } from "./Separator";+import type { ShortcutHelpEntry } from "./ShortcutHelpOverlay";+import { ShortcutHelpKeys, ShortcutHelpOverlay } from "./ShortcutHelpOverlay";import { ShortcutKey, shortcutKeyVariants } from "./ShortcutKey";import {Sidebar,@@ -318,6 +321,7 @@ import { Status } from "./Status";import type { SubheadingProps } from "./Subheading";import { Subheading } from "./Subheading";import { Switch } from "./Switch";+import { SHORTCUTS } from "./shortcuts";import { Table, TableCaption, Tbody, Td, Tfoot, Th, Thead, Tr } from "./Table";import { Tabs, TabsContent, TabsList, TabsTrigger } from "./Tabs";import type { TextareaProps } from "./Textarea";@@ -348,6 +352,7 @@ import { TVColorBars } from "./TVColorBars";import { cn } from "./utils/cn";import { hasOpenDialog, isInsideTopmostDialog } from "./utils/dialog";import { copyToClipboard } from "./utils/dom";+import { isEditableTarget } from "./utils/keyboard";import { getValidChildren, reactNodeToString } from "./utils/react";import { VStack } from "./VStack";@@ -555,6 +560,7 @@ export {Progress,PulsingDot,RadioGroup,+ RadioGroupButton,RadioGroupItem,ResizableHandle,ResizablePanel,@@ -573,9 +579,14 @@ export {SelectValue,Separator,KeyboardKeys,+ SHORTCUTS,+ ShortcutHelpKeys,+ ShortcutHelpOverlay,ShortcutKey,hasOpenDialog,+ isEditableTarget,isInsideTopmostDialog,+ useShortcutKeyMap,Sidebar,SidebarContent,SidebarFooter,@@ -668,7 +679,9 @@ export type {OperatingSystemPlatform,Shortcut,ShortcutDefinition,+ ShortcutHelpEntry,ShortcutInput,+ ShortcutKeyMapEntry,SubheadingProps,TextareaProps,ExpiredEntityPolicy,diff --git a/packages/react/src/shortcuts.ts b/packages/react/src/shortcuts.tsnew file mode 100644index 0000000000..f6ad28a2db--- /dev/null+++ b/packages/react/src/shortcuts.ts@@ -0,0 +1,23 @@+import type { Shortcut, ShortcutInput } from "./hooks/useShortcutKeys";++/**+ * Single source of truth for combos used by SHARED components.+ * App-specific combos live in apps/{erp,mes}/app/shortcuts.ts.+ * Never write a combo string literal at a call site.+ */+export const SHORTCUTS = {+ /** Submit the focused form — fires while typing in a field. */+ save: {+ key: "enter",+ modifiers: ["mod"],+ enabledOnInputElements: true+ } as Shortcut,+ /** Confirm a (destructive) modal action. */+ confirm: "mod+enter" as ShortcutInput,+ /** Open the "New record" page on list views. */+ newRecord: "n" as ShortcutInput,+ /** Open the shortcut help overlay. */+ help: "shift+slash" as ShortcutInput,+ /** Toggle the app sidebar. */+ sidebarToggle: "mod+b" as ShortcutInput+} as const;diff --git a/packages/react/src/utils/keyboard.ts b/packages/react/src/utils/keyboard.tsnew file mode 100644index 0000000000..dcd39b60f0--- /dev/null+++ b/packages/react/src/utils/keyboard.ts@@ -0,0 +1,16 @@+/**+ * True when the event target (or given element) is a text-entry surface that+ * owns its own keys: INPUT, TEXTAREA, SELECT, contenteditable, ProseMirror,+ * cmdk list, or an open listbox/menu. Every shortcut hook/guard uses this —+ * never re-implement the check at a call site.+ */+export function isEditableTarget(+ target: EventTarget | Element | null+): boolean {+ if (!(target instanceof HTMLElement)) return false;+ if (["INPUT", "TEXTAREA", "SELECT"].includes(target.tagName)) return true;+ if (target.isContentEditable) return true;+ return Boolean(+ target.closest(".ProseMirror, [cmdk-root], [role='listbox'], [role='menu']")+ );+}