# agent_ui: Fix delay when loading keybindings in the Agent panel settings \(\#34954\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 2f812c339c1e1f01a3c04d38ca5190520df73c85

Requested commit: 2f812c339c1e1f01a3c04d38ca5190520df73c85

Commit: 2f812c339c1e1f01a3c04d38ca5190520df73c85

Tree: 9d77ac5779ded78c833112509e92341b80371ea7

Author: Umesh Yadav

Committer: GitHub

## Message

```
agent_ui: Fix delay when loading keybindings in the Agent panel settings (#34954)

Fixes a annoying lag in agent settings panel where the keybindings would
show up after a lag. Close to 1-2 secs. It was a simple fix previously
we were not passing the focus handler to context menu which made the
keybindings lookup slower compared to other parts like git panel and
title bar profile dropdown.

| Before | After |
|--------|--------|
| <video
src="https://github.com/user-attachments/assets/1f9c1861-d089-41d3-8a89-4334d7b2f43a"
controls preload></video> | <video
src="https://github.com/user-attachments/assets/fa33d58d-a1ae-48cf-bff7-8e0ee07ed4e1"
controls preload></video> |





Release Notes:

- Fix delay when loading keybindings in the Agent panel settings
```

## Parents

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

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