feat(keybindings): implement centralized keybindings system
Phase 1: Core infrastructure - Add keyboard.ts with event-to-shortcut conversion, display formatting - Add keybindingsStore.ts with action registry, conflict detection, persistence Phase 2: Migration - Migrate +page.svelte shortcuts to use keybinding manager - Register global actions: playback, navigation, UI controls - Integrate FocusMode with contextual seek actions - Simplify ExpandedPlayer to use keybinding handler - Add i18n translations for keybinding labels (en/es)
This commit is contained in:
1 parent
cec4c32bcc
commit
fa6538df2c
7 files changed
+651
-51
No files matched your search
@@ -970,5 +970,44 @@
|
||||
"collapse": "Contraer",
|
||||
"expand": "Expandir",
|
||||
"clearFilter": "Limpiar filtro"
|
||||
},
|
||||
"keybindings": {
|
||||
"title": "Atajos de Teclado",
|
||||
"categories": {
|
||||
"playback": "Reproducción",
|
||||
"navigation": "Navegación",
|
||||
"ui": "Interfaz",
|
||||
"focus": "Modo Focus"
|
||||
},
|
||||
"actions": {
|
||||
"playbackToggle": "Reproducir / Pausar",
|
||||
"playbackNext": "Siguiente Pista",
|
||||
"playbackPrev": "Pista Anterior",
|
||||
"navBack": "Ir Atrás",
|
||||
"navForward": "Ir Adelante",
|
||||
"uiFocusMode": "Modo Focus",
|
||||
"uiQueue": "Cola",
|
||||
"uiEscape": "Cerrar / Descartar",
|
||||
"uiShowShortcuts": "Mostrar Atajos",
|
||||
"focusSeekForward": "Avanzar (5s)",
|
||||
"focusSeekBack": "Retroceder (5s)",
|
||||
"focusSeekForwardLong": "Avanzar (10s)",
|
||||
"focusSeekBackLong": "Retroceder (10s)"
|
||||
},
|
||||
"descriptions": {
|
||||
"playbackToggle": "Alternar reproducción",
|
||||
"playbackNext": "Saltar a la siguiente pista",
|
||||
"playbackPrev": "Ir a la pista anterior",
|
||||
"navBack": "Navegar a la página anterior",
|
||||
"navForward": "Navegar a la siguiente página",
|
||||
"uiFocusMode": "Alternar modo focus",
|
||||
"uiQueue": "Alternar panel de cola",
|
||||
"uiEscape": "Cerrar panel activo o modal",
|
||||
"uiShowShortcuts": "Mostrar modal de atajos de teclado",
|
||||
"focusSeekForward": "Avanzar 5 segundos",
|
||||
"focusSeekBack": "Retroceder 5 segundos",
|
||||
"focusSeekForwardLong": "Avanzar 10 segundos",
|
||||
"focusSeekBackLong": "Retroceder 10 segundos"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user