# agent_ui: Simplify thread scrolling with keyboard \(\#53547\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 38e1d19e062f300068d944a0c8129d0ccd17648e

Requested commit: 38e1d19e062f300068d944a0c8129d0ccd17648e

Commit: 38e1d19e062f300068d944a0c8129d0ccd17648e

Tree: c8e2c4d586a765964006d3066cdc9323e90eb9a6

Author: Oleksiy Syvokon

Committer: GitHub

## Message

```
agent_ui: Simplify thread scrolling with keyboard (#53547)

This change allows using simple navigation keys (PageDown / PageUp /
Ctrl-Home / Ctrl-End) when the message editor is focused, but only if
the cursor is at the beginning/end of the message, where pressing these
keys would normally result in no-op.

One important corollary is that when the cursor is in an empty message,
navigation keys scroll the thread.

We already have this behavior for Up/Down and this change just expands
it for other navigation keys.

Demo:


[Demo](https://github.com/user-attachments/assets/ff540c8c-a223-417b-b16a-b0d08599b1ae)



Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [ ] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable


Release Notes:

- N/A
```

## Parents

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

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