Closed Bug 1950579 Opened 8 days ago Closed

Keyboard navigation in a multi-select with vertical-rl or sideways-rl writing mode is reversed

Categories

(Core :: Layout: Form Controls, defect)

defect

Tracking

()

RESOLVED FIXED
137 Branch
Tracking Status
firefox137 --- fixed

People

(Reporter: jfkthame, Assigned: jfkthame)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

WPT failure: https://wpt.fyi/results/css/css-writing-modes/forms/select-multiple-keyboard-selection.optional.html?label=experimental&label=master&view=interop&q=label%3Ainterop-2025-writingmodes

Testcase:

data:text/html,<select size=4 style=writing-mode:sideways-rl><option>one<option>two<option>three<option>four<option>five

Click in the <select> and then attempt to use the left- and right-arrow keys to move the highlight back and forth through the options: movement is reversed from the expected direction.

Assignee: nobody → jfkthame
Status: NEW → ASSIGNED

The above patch handles this by swapping left/right key codes in nsListControlFrame::HandleEvent, and appears to work as expected in local testing. An alternative approach might be to handle things in HTMLSelectEventListener, but that seems like it might become a somewhat more extensive patch.

Pushed by jkew@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8a2b9d6d762c Swap behavior of left- and right-arrow keys in list control with vertical-rl writing mode. r=layout-reviewers,emilio
Status: ASSIGNED → RESOLVED
Closed: 7 days ago
Resolution: --- → FIXED
Target Milestone: --- → 137 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: