feat: add toggleable hotkey hints to sidebar buttons and refac ShortcutsModal
- Add src/lib/shortcuts.ts as the single source of truth for every shortcut - Create HotkeyHint.svelte to show OS-aware key combos (⌘ on Mac, Ctrl elsewhere) - Make sidebar “New Chat” and “Search” buttons display their shortcuts on hover - Add user setting to toggle these sidebar hints - Refactor ShortcutsModal into categorized (Global, Chat, Message, Input), data-driven sections - Introduce ShortcutItem.svelte to render each row, dividers, and multi-line text - Fix “Focus text area” action and include “Close modal” shortcut - Wire everything through +layout.svelte and the shortcuts registry
This commit is contained in:
@@ -1446,6 +1446,7 @@
|
||||
"Show image preview": "",
|
||||
"Show Model": "",
|
||||
"Show shortcuts": "",
|
||||
"Show Sidebar Hotkey Hints": "",
|
||||
"Show your support!": "",
|
||||
"Showcased creativity": "",
|
||||
"Sign in": "",
|
||||
|
||||
Reference in New Issue
Block a user