Skip to content

Keyboard navigation in long Files pane folders can lose focus #19885

Todo

Description

@gtritchie

In a Files pane folder with a few hundred files or more, keyboard navigation in the file list can drop focus to the page.

Seen in a folder of 500 files on a dev server:

  • End moved focus out of the list to the page body.
  • Page Down did the same on its first press.

Moving focus with ArrowDown well past the first couple of hundred rows may do the same; that hasn't been checked.

A likely cause, not yet confirmed: the file list draws only the rows within about 200 of what's on screen (VirtualizedDataGrid). GWT's lookup of the keyboard-selected cell (AbstractCellTable.getKeyboardSelectedTableCellElement) compares the selected row's index with the number of rows actually drawn, so it finds nothing for a row far down the list, and there's nothing to focus. Other grids built on VirtualizedDataGrid may have the same problem.

Found while working on #19882, but not caused by it. Details and reliable reproductions still need to be worked out.

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

Metadata

Metadata

Assignees

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions