ShortcutIsland
Bündelt Tastaturhinweise oder die kompakte Kapitelsteuerung für den bestehenden Reader.
src/components/ShortcutIsland.astroSource contract in German. The marked authoring notes below retain their original language.
Usage contract
Use through the documented parent
Entry point: src/components/case/CasePage.astro
- keys steuert die verfügbaren Aktionen; Reader-Modus benötigt die zugehörige Case-Navigation.
- Nur einmal pro Seite; die Einzelbuchstaben-Shortcuts müssen abschaltbar bleiben.
Examples
No dedicated demo is assigned. Use the documented entry point and consumers below; this is not evidence of a missing runtime component.
API
Extracted from the source with the TypeScript parser. Inherited and imported types remain references; implementation is authoritative.
type Key = 'chapters' | 'next' | 'prev' | 'ai' | 'lang' | 'theme';interface Props { locale: Locale; keys?: Key[]; story?: boolean }Astro.props
Bindings and defaults read from source; these do not add inferred types.
localekeys = ['lang', 'theme']story = false
Source usage
Website reference
This is static source evidence. A reachable module may contain conditional or unused branches. External consumers and staged static pages are outside this scan. No status authorizes deletion.
Website
- src/pages/en/work/[id].astro
- src/components/case/CasePage.astro
- src/components/ShortcutIsland.astro
Documentation
- src/pages/design-system/[category].astro
- src/components/ds/DesignSystemPage.astro
- src/components/ds/ControlDemos.astro
- src/components/ShortcutIsland.astro
Preview
- src/pages/vorschlag/cases/[id].astro
- src/components/case/CasePage.astro
- src/components/ShortcutIsland.astro
Consumers in source
Direct static, dynamic and type imports. Imports do not prove that a branch renders or that a proposal is published.
Dependencies
./Keycap.astro·src/components/Keycap.astro./islands/KeyboardHelp·src/components/islands/KeyboardHelp.tsx./ui/icon-button·src/components/ui/icon-button.tsx./Zeichen.astro·src/components/Zeichen.astro@/i18n/index.ts·src/i18n/index.ts@/scripts/theme.ts·src/scripts/theme.ts@/scripts/case-navigation.ts·src/scripts/case-navigation.ts