Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Page Up/Down work oddly in dropdowns without scrollbars #8433

@peterflynn

Description

@peterflynn
  1. Open the Find in Files filter dropdown, or the status bar language picker dropdown
  2. Hover over any random item in the list
  3. Press Page Up or Page Down repeatedly

Result: Selection alternates between the first and last item in the list forever. Nothing else ever gets selected.

Expected: Either do nothing or act like Home/End instead of jumping around (the latter is how native dropdowns appear to work on Windows).

Side note -- it also looks like DropdownEventHandler._itemsPerPage() won't work right when there are any dividers in the list (indeed, you can't return a single result that's true for all "pages" of items, since their height isn't constant). The only dropdowns we currently use dividers on are too short to scroll, but that's not guaranteed forever -- so we might want to clean up the other Page Up/Down codepath too...

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions