Skip to content

Add Ctrl+K / Cmd+K shortcut to navbar search#4032

Open
rahman-D3V wants to merge 1 commit into
jgthms:mainfrom
rahman-D3V:feat/ctrl-k-search
Open

Add Ctrl+K / Cmd+K shortcut to navbar search#4032
rahman-D3V wants to merge 1 commit into
jgthms:mainfrom
rahman-D3V:feat/ctrl-k-search

Conversation

@rahman-D3V
Copy link
Copy Markdown

What this does

  • Adds a global Ctrl + K / Cmd + K keyboard shortcut to open the navbar search
  • Displays a keyboard shortcut hint next to the search icon on desktop

Why

This improves search discoverability and matches common UX patterns used in modern developer-focused websites.

Fixes #4031

Implementation details

  • Reuses the existing search toggle behavior
  • Plain JavaScript, no new dependencies
  • Desktop-only visual hint; mobile UI remains unchanged

Testing done

  • Verified locally using jekyll serve
  • Tested keyboard shortcut and click behavior
  • Confirmed no layout changes on mobile

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.

Quick search with CMD + K on webiste

1 participant