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

michael left a comment (w3c/editing#542)

Conclusion after discussion in W3C monthly meeting:

- desired behavior above can not be implemented easily because it might be a breaking change
- iOS/Android have no notion of modifier keys, when virtual keyboards are used
- this means editor developers should ignore modifier keys when a virtual keyboard is active (check via VirtualKeyboard API) e.g. for an Enter keypress where `event.shiftKey === true`, it should be interpreted as if only Enter were pressed
- iOS platform guidlines for iOS (likely Android as well) recommend to use dedicated tools e.g. a "hard break" button in a toolbar, and not rely on modifier keys.

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

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

Received on Thursday, 9 July 2026 16:34:02 UTC