- From: Michael Aufreiter <notifications@github.com>
- Date: Thu, 09 Jul 2026 05:50:28 -0700
- To: w3c/editing <editing@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 9 July 2026 12:50:32 UTC
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