镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
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.

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

1 participant