# settings_ui: Improve keyboard nav \(\#39819\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/3d200a5466cd717ba4bb237afd7f1460c3912940)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 3d200a5466cd717ba4bb237afd7f1460c3912940

Requested commit: 3d200a5466cd717ba4bb237afd7f1460c3912940

Commit: 3d200a5466cd717ba4bb237afd7f1460c3912940

Tree: 81338391f9796ad817470c16e1b2027e0957e946

Author: Ben Kunkle

Committer: GitHub

## Message

````
settings_ui: Improve keyboard nav (#39819)

Closes #ISSUE

From notes:

```markdown
  - [x] Clicking on the disclsoure icon button in the root-level tree view item should steal focus and move it to the root item (not the icon button)
  - [x] [@ben] Allow left/right arrow keys to expand/collapse root tree view items in the nav
    - [x] With this, make enter/space work the same as clicking (activate page, don't expand root items, focus moves to the content and leaves nav — becomes consistent with mouse interaction)
  - [x] Smart cmd-shift-e: toggling focus should take you to the selected item
  - [x] [@ben] pageup + pagedown in nav -> jump between root items
  - [x] [@ben] home + end buttons should work
    - in nav:
      - home always goes to first section header
      - end always goes to last _visible_ item (does not expand)
```

Release Notes:

- N/A *or* Added/Fixed/Improved ...
````

## Parents

- [e077b63915a6840dc1b0d0c9f3606ebf7759dc59](https://git.cafe/gitcafe/zed/commit/e077b63915a6840dc1b0d0c9f3606ebf7759dc59?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/3d200a5466cd717ba4bb237afd7f1460c3912940?format=markdown)
