diff --git a/frontend/src/components/sidebar/app-sidebar.ts b/frontend/src/components/sidebar/app-sidebar.ts index 0940d3c..a051fca 100644 --- a/frontend/src/components/sidebar/app-sidebar.ts +++ b/frontend/src/components/sidebar/app-sidebar.ts @@ -53,39 +53,57 @@ export class AppSidebar extends LitElement { padding: 16px; } + /* The nav item is a real `; })} + `; } diff --git a/frontend/src/services/keyboard-shortcut-service.ts b/frontend/src/services/keyboard-shortcut-service.ts index 6478d5f..e271274 100644 --- a/frontend/src/services/keyboard-shortcut-service.ts +++ b/frontend/src/services/keyboard-shortcut-service.ts @@ -11,6 +11,7 @@ * - Action dispatch to player/queue/nav stores */ import { shortcutsStore } from '@store/shortcuts-store'; +import { ambientShortcutScope } from './shortcut-scope'; import { playerStore } from '@store/player-store'; import { queueStore } from '@store/queue-store'; import * as Player from '@go/player/Player'; @@ -131,6 +132,128 @@ type ShortcutScope = | `panel:${string}` | 'global'; +/** + * Elements that own particular keys themselves. + * + * The global bindings are unmodified single keys (Space, arrows, letters) + * — see Decision 1 in plan 007 — so without this a focused button cannot + * be activated with Space and a `