[Webkit-unassigned] [Bug 191023] New: InputEvent.inputType should be "deleteSoftLineBackward" or "deleteSoftLineForward" rather than "deleteHardLineBackward" nor "deleteHardLineForward" when pressing Command + Backspace or Delete

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Oct 29 01:49:02 PDT 2018


https://bugs.webkit.org/show_bug.cgi?id=191023

            Bug ID: 191023
           Summary: InputEvent.inputType should be
                    "deleteSoftLineBackward" or "deleteSoftLineForward"
                    rather than "deleteHardLineBackward" nor
                    "deleteHardLineForward" when pressing Command +
                    Backspace or Delete
           Product: WebKit
           Version: Safari 12
          Hardware: Macintosh
                OS: macOS 10.14
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML Editing
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: masayuki at d-toybox.com
                CC: wenson_hsieh at apple.com

STR:
1. Load https://d-toybox.com/studio/lib/input_event_viewer.html
2. Choose "<div contenteditable>" from the radio buttons.
3. Shrink your Safari window as far as possible.
4. Type a long text *without* line breaks into the editor below the toolbars (blue solid border area) until you see a couple of lines.
5. Put a caret at middle of a line.
6. Press Command + Backspace.

Actual result:
I see "deleteHardLineBackward" value in dispatched "input"/"beforeinput" events (shown table in bottom of the page).

Expected result:
Those inputType values should be "deleteSoftLineBackward" because this operation removes from caret to the previous *visual* line break.

"deleteSoftLineBackword" is defined as:
> delete from the caret to the nearest visual line break before the caret position

"deleteHardLineBackword" is defined as:
> delete from the caret to the nearest beginning of a block element or br element before the caret position

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

Chrome uses "deleteSoftLineBackward", and Firefox will use it.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20181029/1abfe1ba/attachment.html>


More information about the webkit-unassigned mailing list