Skip to content

fix(client): display platform-appropriate search hotkey label - #687

Open
Tyagiquamar wants to merge 1 commit into
Blockstream:masterfrom
Tyagiquamar:fix/search-hotkey-label-664
Open

Tyagiquamar wants to merge 1 commit into
Blockstream:masterfrom
Tyagiquamar:fix/search-hotkey-label-664

Conversation

@Tyagiquamar

Copy link
Copy Markdown

Fixes #664

Summary

The search bar previously hardcoded \⌘K\ as the keyboard shortcut hint. While \⌘K\ is standard on macOS, non-Mac platforms (Windows, Linux) use \Ctrl+K\ (which is already supported by the keydown listener in \�pp.js).

Changes

  • Detect platform in \client/src/views/search.js\ and display \⌘K\ on macOS and \Ctrl K\ on other platforms.

@agammann agammann left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The non-Mac branch displays Ctrl K, while the shortcut and the PR description use Ctrl+K. Could the hint include the + so it reads as one key combination? This is the only new text in the change, and the current label could be read as two separate keys.

This branch has not been deployed

No deployments
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.

"⌘K" may be macOS-specific

2 participants