# ui: Expose keybinding visibility \(\#63770\) · gitcafe/zed

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

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

Visibility: public

Requested revision: e0ae50d1b19e2692d21027c3e93092aa95186c97

Requested commit: e0ae50d1b19e2692d21027c3e93092aa95186c97

Commit: e0ae50d1b19e2692d21027c3e93092aa95186c97

Tree: f0e5b474330d18a7dce2a2da78b513a2be4f1135

Author: Jakub Konka

Committer: GitHub

## Message

```
ui: Expose keybinding visibility (#63770)

`KeyBinding::set_default_visibility` lets applications suppress
keybinding labels, but the current visibility value is private to
`KeyBinding::render`. Applications that compose related modifier hints
from lower-level UI elements cannot follow the same presentation policy.

Expose the existing visibility query without changing its behavior. This
lets those callers omit their complete hint, including accompanying text
and spacing, while sharing the same application-wide source of truth.

Release Notes:

- N/A
```

## Parents

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

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