Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

selectlist: Implement new keyboard behavior #42068

Merged
merged 1 commit into from
Oct 10, 2023

Conversation

chromium-wpt-export-bot
Copy link
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented Sep 19, 2023

This patch implements several keyboard behaviors:

  • Enter while the listbox is closed should not open the listbox and
    should instead submit the form.
  • Enter while the listbox is open should select/commit the currently
    focused option and close the listbox.
  • Space should open the listbox.
  • Arrow keys while the listbox is open should not commit the newly
    focused value.
  • Arrow keys while the listbox is closed should open the listbox.

These were resolved on in OpenUI here:

This patch also implements the resolution here to stop changing the
visible value of the selected option while the user is switching the
focused option using the arrow keys:

Fixed: 1422275
Change-Id: If5e7328ad739f9c7339dcd17561c57875d4255e7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4876791
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Reviewed-by: Mason Freed <masonf@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1207785}

Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Chromium project.

@chromium-wpt-export-bot chromium-wpt-export-bot changed the title selectlist: implement new keyboard behavior selectlist: Implement new keyboard behavior Oct 6, 2023
@chromium-wpt-export-bot chromium-wpt-export-bot force-pushed the chromium-export-cl-4876791 branch 3 times, most recently from 475f71f to a9ec75e Compare October 10, 2023 16:46
This patch implements several keyboard behaviors:
- Enter while the listbox is closed should not open the listbox and
  should instead submit the form.
- Enter while the listbox is open should select/commit the currently
  focused option and close the listbox.
- Space should open the listbox.
- Arrow keys while the listbox is open should not commit the newly
  focused value.
- Arrow keys while the listbox is closed should open the listbox.

These were resolved on in OpenUI here:
- openui/open-ui#433 (comment)
- openui/open-ui#386 (comment)
- openui/open-ui#742

This patch also implements the resolution here to stop changing the
visible value of the selected option while the user is switching the
focused option using the arrow keys:

Fixed: 1422275
Change-Id: If5e7328ad739f9c7339dcd17561c57875d4255e7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4876791
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Reviewed-by: Mason Freed <masonf@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1207785}
@chromium-wpt-export-bot chromium-wpt-export-bot merged commit 020d212 into master Oct 10, 2023
22 checks passed
@chromium-wpt-export-bot chromium-wpt-export-bot deleted the chromium-export-cl-4876791 branch October 10, 2023 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants