feat: enhance keyboard shortcuts and background image handling

- Added `GlobalKeyboardShortcuts` component to manage global keyboard shortcuts.
- Introduced new keyboard shortcut (Shift + B) for changing the background.
- Updated `BackgroundImageSelector` to preserve custom background URLs and allow restoration of previously set backgrounds.
- Improved local storage handling for custom backgrounds to enhance user experience.
This commit is contained in:
Julien Froidefond
2025-10-02 13:52:18 +02:00
parent d4e8dc144b
commit 9094aca1ff
6 changed files with 169 additions and 9 deletions

View File

@@ -32,6 +32,11 @@ const PAGE_SHORTCUTS: PageShortcuts = {
description: 'Faire tourner les thèmes dark',
category: 'Apparence'
},
{
keys: ['Shift', 'B'],
description: 'Changer le background',
category: 'Apparence'
},
{
keys: ['Esc'],
description: 'Fermer les modales/annuler',