News for hackers. Stuff that matters.
Re:Ask HN: Can Browsers Have a Universal Hotkey for Website ... by hyperupcall on Saturday February 11, 2023 @11:23AM (#34753671)
This is the kind of stuff I describe in my semantic hotkeys[1] piece. There isn't a really good way to define hotkeys for web apps across websites. In lieu of a browser spec (for now), or a non-normative recommendation, there needs to be convention under no uncertain terms about which keys do what.

We already have Ctrl+K and Ctrl+/, I think it's time to formalize these conventions, and more! There is a gap of semantic interoperability across websites that needs some fixin'.

[1] https://hyperupcall.github.io/blog/posts/semantic-hotkeys/

Re:Ask HN: Can Browsers Have a Universal Hotkey for Website ... by mcculley on Saturday February 11, 2023 @11:30AM (#34753741)
What do Ctrl+K and Ctrl+/ do?
Re:Ask HN: Can Browsers Have a Universal Hotkey for Website ... by hyperupcall on Saturday February 11, 2023 @03:23PM (#34755978)
Ctrl+K is often used to perform any kind of action. On Discord, Slack, GitHub, etc. let you perform any action with this hotkey. It's also a generic search, as website searches implemented with Algolia use this by default.

Ctrl+/ is usually used to show all the keyboard shortcuts, or at least the most common ones. Usable on Discord, Slack, VSCode, etc.