- From: Brian Birtles via GitHub <sysbot+gh@w3.org>
- Date: Tue, 23 Apr 2019 12:44:12 +0000
- To: public-css-archive@w3.org
birtles has just created a new issue for https://github.com/w3c/csswg-drafts: == [mediaqueries-5] Detect physical keyboard (keyboard capable of shortcuts?) == From stackoverflow: https://stackoverflow.com/questions/36976117/css-media-query-for-whether-a-physical-keyboard-is-attached **Use case:** I want show keyboard shortcut labels in my menu / tooltips but only when the user has a physical keyboard. **Rationale** (taken directly from the above SO issue): > * nobody would use a soft-keyboard this way even if they could > * the visual display of the keyboard shortcut takes up valuable real-estate > * it's perhaps confusing, or at least inelegant, to display keyboard shortcuts in a keyboardless context Apparently some people are doing horrible hacks like using `@media (hover: hover) and (pointer: fine) { ... }` to detect if there is a mouse/trackpad and assuming that means there is a keyboard too. Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3871 using your GitHub account
Received on Tuesday, 23 April 2019 12:44:13 UTC