# agent_ui: Fix inconsistent Rules keybinding in Toggle Agent Menu \(\#54420\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 80ab7481254581cb3b7316fc05cc6019c6305930

Requested commit: 80ab7481254581cb3b7316fc05cc6019c6305930

Commit: 80ab7481254581cb3b7316fc05cc6019c6305930

Tree: da83863cea4cd27bbe2852bc55482e6837a2d166

Author: galuis116

Committer: GitHub

## Message

```
agent_ui: Fix inconsistent Rules keybinding in Toggle Agent Menu (#54420)

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)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Closes #54419

Release Notes:

- Fixed Agent menu shortcut context handling so Alt-Shift-L consistently
resolves to Rules (and displays correctly) when the Toggle Agent Menu is
open, while preserving existing global/context-specific shortcuts such
as Language Servers and onboarding bindings outside Agent menu context.

---------

Co-authored-by: Danilo Leal <daniloleal09@gmail.com>
Co-authored-by: Danilo Leal <67129314+danilo-leal@users.noreply.github.com>
```

## Parents

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

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