[webkit-changes] [WebKit/WebKit] 588470: [macOS] Fix keyboard selection/editing of date/tim...

Aditya Keerthi noreply at github.com
Thu Nov 9 14:24:13 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 58847085b32f7aae4f8d6884547e063076834605
      https://github.com/WebKit/WebKit/commit/58847085b32f7aae4f8d6884547e063076834605
  Author: Aditya Keerthi <akeerthi at apple.com>
  Date:   2023-11-09 (Thu, 09 Nov 2023)

  Changed paths:
    M LayoutTests/fast/forms/date/date-editable-components/date-editable-components-keyboard-events-expected.txt
    M LayoutTests/fast/forms/date/date-editable-components/date-editable-components-keyboard-events.html
    M LayoutTests/fast/forms/datetimelocal/datetimelocal-editable-components/datetimelocal-editable-components-keyboard-events-expected.txt
    M LayoutTests/fast/forms/datetimelocal/datetimelocal-editable-components/datetimelocal-editable-components-keyboard-events.html
    M LayoutTests/fast/forms/month/month-editable-components/month-editable-components-keyboard-events-expected.txt
    M LayoutTests/fast/forms/month/month-editable-components/month-editable-components-keyboard-events.html
    M LayoutTests/fast/forms/time/time-editable-components/time-editable-components-keyboard-events-expected.txt
    M LayoutTests/fast/forms/time/time-editable-components/time-editable-components-keyboard-events.html
    M Source/WebCore/html/shadow/DateTimeEditElement.cpp
    M Source/WebCore/html/shadow/DateTimeEditElement.h
    M Source/WebCore/html/shadow/DateTimeFieldElement.cpp
    M Source/WebCore/html/shadow/DateTimeFieldElement.h

  Log Message:
  -----------
  [macOS] Fix keyboard selection/editing of date/time inputs in vertical writing mode
https://bugs.webkit.org/show_bug.cgi?id=264466
rdar://118159670

Reviewed by Wenson Hsieh.

In vertical writing mode, vertical arrow keys should select the next/previous
editable date/time component, and horizontal arrow keys should increment and
decrement the value of the currently selected component.

Update existing keyboard selection/editing tests to include vertical writing
modes.

* LayoutTests/fast/forms/date/date-editable-components/date-editable-components-keyboard-events-expected.txt:
* LayoutTests/fast/forms/date/date-editable-components/date-editable-components-keyboard-events.html:
* LayoutTests/fast/forms/datetimelocal/datetimelocal-editable-components/datetimelocal-editable-components-keyboard-events-expected.txt:
* LayoutTests/fast/forms/datetimelocal/datetimelocal-editable-components/datetimelocal-editable-components-keyboard-events.html:
* LayoutTests/fast/forms/month/month-editable-components/month-editable-components-keyboard-events-expected.txt:
* LayoutTests/fast/forms/month/month-editable-components/month-editable-components-keyboard-events.html:
* LayoutTests/fast/forms/time/time-editable-components/time-editable-components-keyboard-events-expected.txt:
* LayoutTests/fast/forms/time/time-editable-components/time-editable-components-keyboard-events.html:
* Source/WebCore/html/shadow/DateTimeEditElement.cpp:
(WebCore::DateTimeEditElement::isFieldOwnerHorizontal const):
* Source/WebCore/html/shadow/DateTimeEditElement.h:
* Source/WebCore/html/shadow/DateTimeFieldElement.cpp:
(WebCore::DateTimeFieldElement::defaultKeyboardEventHandler):
(WebCore::DateTimeFieldElement::isFieldOwnerHorizontal const):
* Source/WebCore/html/shadow/DateTimeFieldElement.h:

Canonical link: https://commits.webkit.org/270480@main




More information about the webkit-changes mailing list