Web-Facing Change PSA: InputEvent types for deletion commands on non-collapsed selections

43 views
Skip to first unread message

Chromestatus

unread,
12:58 AM (5 hours ago) 12:58 AM
to blin...@chromium.org, prana...@microsoft.com
Contact emails
prana...@microsoft.com

Specification
https://w3c.github.io/input-events/#interface-InputEvent-Attributes

Summary
Reports accurate inputType values for deletion keyboard shortcuts on selected text. When deletion commands like Ctrl+Backspace or Ctrl+Delete are used with selected text in contenteditable elements, the beforeinput and input events now report deleteContentBackward or deleteContentForward instead of deleteWordBackward or deleteWordForward. This enables web developers to correctly understand what editing operation occurred and implement reliable undo/redo or custom editing behaviors.

Blink component
Blink>Editing>InputEvent

Web Feature ID
input-event

Risks


Interoperability and Compatibility
No information provided

Gecko: No signal (https://developer.mozilla.org/en-US/docs/Web/API/InputEvent/inputType)

WebKit: Shipped/Shipping (https://webkit.org/blog/7358/enhanced-editing-with-input-events)

Web developers: No signals

Other signals:

WebView application risks

Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?

No information provided


Debuggability
No information provided

Will this feature be supported on all six Blink platforms (Windows, Mac, Linux, ChromeOS, Android, and Android WebView)?
Yes

Is this feature fully tested by web-platform-tests?
Yes




Tracking bug
https://issues.chromium.org/issues/41423062

Estimated milestones
Shipping on desktop145
Shipping on Android145
Shipping on iOS145


Link to entry on the Chrome Platform Status
https://chromestatus.com/feature/5173317243895808

This intent message was generated by Chrome Platform Status.
Reply all
Reply to author
Forward
0 new messages