Re: [csswg-drafts] [mediaqueries-5] Detect physical keyboard (keyboard capable of shortcuts?) (#3871)

For now I'm using this bit of critical javascript to add a `no-keyboard` class to my document, used to conditionally hide visual hints for keyboard shortcuts:

```js
'keyboard' in navigator
|| navigator.userAgentData?.brands?.some(x => x.brand === 'Chromium')
```

On things not Chromium-based, I'm assuming a keyboard is present since I can't know for sure.

-- 
GitHub Notification of comment by jcayzac
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3871#issuecomment-3732256726 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Saturday, 10 January 2026 09:35:34 UTC