Re: [w3c/editing] Inconsistent `KeyboardEvent.shiftKey` behavior for virtual keyboard autocapitalization (Issue #542)

michael left a comment (w3c/editing#542)

Related feature suggestion:

In case the behavior can not be changed as described above (reasons?), and to support other situations where an editor needs to decide "how to interpret a certain key event" it would be generally helpful to have access to device information for every KeyboardEvent. E.g. be able to tell if the event came from a physical or virtual keyboard.

Something like this:

```js
function onkeydown(event) {
  console.log(event.origin.isVirtual) // returns true when KeyboardEvent originated from a virtual keyboard
}
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/editing/issues/542#issuecomment-4925221582
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/editing/issues/542/4925221582@github.com>

Received on Thursday, 9 July 2026 12:50:32 UTC