Skip to content

[Bug]: PageUp and PageDown do nothing in command palette lists #6159

Open

Description

@Falkesand

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/web

Steps to reproduce

  1. Start the app and click the "New project" button in the sidebar (the folder-plus icon), or use the Add project action in the command palette.
  2. Choose "Local folder". The palette now lists the directories under the current path.
  3. Pick a path with more directories than fit in the popup. ~/ is usually enough; the popup shows about ten rows.
  4. Press ArrowDown once to highlight a row.
  5. Press PageDown.

Expected behavior

The highlight moves down by one screenful of rows, the way a list moves in a file manager or any native list control, and stops on the last row.

Actual behavior

Nothing happens. The highlight stays where it is and the list does not scroll. PageUp behaves the same. The only way through a long folder list is one ArrowDown press per row, or typing the path by hand.

Home and End do move the highlight to the first and last row, so the page keys are the only missing step size.

Impact

Minor bug or occasional failure

Version or commit

main @ f5fce74

Environment

Windows 11, dev build started with pnpm dev, checked in a Chromium-based browser. Not checked on macOS or Linux.

Workaround

Hold ArrowDown, or type the directory path into the palette input instead of browsing to it.

Notes

The list navigation is Base UI's, and its useListNavigation has cases for the arrow keys and for Home/End but none for PageUp/PageDown, so the keys reach the input and do nothing there. The highlighted index lives in Base UI's internal store and the public Autocomplete/Combobox API has no way to set it: onItemHighlighted only reports changes and actionsRef carries just unmount. That is why a fix has to sit in the dependency rather than in the palette code.

The same palette component backs the file picker, project content search and favicon picker, so those lists should be affected too. I only measured the "New project" folder list.

A fix is proposed in #6155, which patches @base-ui/react to handle the page keys for vertical single-column lists.

Activity

  1. maria-rcks commented on Oct 12, 2026

    @maria-rcks
    Collaborator

    Note

    This is an automated response from a bot acting on maria's behalf.
    This issue has had no activity since 2026-08-11.
    Is it still relevant on the current version? If so, your version and OS would help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions