Skip to content

ndg-templates: add Ctrl+K search shortcut and keycap hint - #304

Open
karol-broda wants to merge 2 commits into
feel-co:mainfrom
karol-broda:feat/search-shortcut-hint
Open

karol-broda wants to merge 2 commits into
feel-co:mainfrom
karol-broda:feat/search-shortcut-hint

Conversation

@karol-broda

Copy link
Copy Markdown
Contributor

adds Ctrl+K to focus search, alongside the existing / shortcut. i didn’t even realise / already worked because vimium was catching it

Ctrl+K focuses the options filter when present, then the search page input, then the header search. it also works from editable fields, while / still only activates outside them

the header search field now shows a Ctrl+K keycap, hidden while focused and on mobile. the search page's keyboard hints also list both shortcuts

i also noticed some weird things in the theming implementation while looking through this. happy to follow up with a separate PR for those if that would be welcome

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.

1 participant