Skip to content

feat: Implement keyboard shortcuts and command palette#641

Open
Muhamadmust wants to merge 1 commit into
StellarCommons:mainfrom
Muhamadmust:feat/keyboard-shortcuts-command-palette
Open

feat: Implement keyboard shortcuts and command palette#641
Muhamadmust wants to merge 1 commit into
StellarCommons:mainfrom
Muhamadmust:feat/keyboard-shortcuts-command-palette

Conversation

@Muhamadmust

Copy link
Copy Markdown
  • Add useKeyboardShortcuts hook for global keyboard event listeners

    • Cmd+K / Ctrl+K: Open command palette
    • /: Focus search input
    • Escape: Close panels/clear focus
    • Cmd+1 / Ctrl+1: Switch to Transaction tab
    • Cmd+2 / Ctrl+2: Switch to Account tab
    • Cmd+H / Ctrl+H: Open history panel
    • Cmd+B / Ctrl+B: Open address book panel
    • Shortcuts disabled when focused in input/textarea/contenteditable
  • Create CommandPalette component with:

    • Centered modal with overlay
    • Fuzzy search filtering across history entries
    • Keyboard navigation (Arrow Up/Down, Enter, Escape)
    • Body scroll lock while open
    • Icons for transaction and account types
  • Create KeyboardShortcutHint badge component:

    • Desktop-only rendering (hidden on touch devices)
    • Displays keyboard key combinations
    • Responsive and styled to match theme
  • Create HistoryButton component with keyboard hint

  • Create AddressBookButton component with keyboard hint

  • Integrate / focus event in SearchBar component

  • Register keyboard shortcuts in AppShell component

  • Render CommandPalette at root level
    Closes UI — Add keyboard shortcuts and command palette (Cmd+K) #512

- Add useKeyboardShortcuts hook for global keyboard event listeners
  * Cmd+K / Ctrl+K: Open command palette
  * /: Focus search input
  * Escape: Close panels/clear focus
  * Cmd+1 / Ctrl+1: Switch to Transaction tab
  * Cmd+2 / Ctrl+2: Switch to Account tab
  * Cmd+H / Ctrl+H: Open history panel
  * Cmd+B / Ctrl+B: Open address book panel
  * Shortcuts disabled when focused in input/textarea/contenteditable

- Create CommandPalette component with:
  * Centered modal with overlay
  * Fuzzy search filtering across history entries
  * Keyboard navigation (Arrow Up/Down, Enter, Escape)
  * Body scroll lock while open
  * Icons for transaction and account types

- Create KeyboardShortcutHint badge component:
  * Desktop-only rendering (hidden on touch devices)
  * Displays keyboard key combinations
  * Responsive and styled to match theme

- Create HistoryButton component with keyboard hint
- Create AddressBookButton component with keyboard hint

- Integrate / focus event in SearchBar component
- Register keyboard shortcuts in AppShell component
- Render CommandPalette at root level

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UI — Add keyboard shortcuts and command palette (Cmd+K)

1 participant