# keymap_ui: Show existing keystrokes as placeholders in edit modal \(\#34307\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 0797f7b66e4187a599b88532545da46071f854f4

Requested commit: 0797f7b66e4187a599b88532545da46071f854f4

Commit: 0797f7b66e4187a599b88532545da46071f854f4

Tree: 09defbd7dfe31ac319646e08972c8819b1a636e5

Author: Ben Kunkle

Committer: GitHub

## Message

```
keymap_ui: Show existing keystrokes as placeholders in edit modal (#34307)

Closes #ISSUE

Previously, the keystroke input would be empty, even when editing an
existing binding. This meant you had to re-enter the bindings even if
you just wanted to edit the context. Now, the existing keystrokes are
rendered as a placeholder, are re-shown if newly entered keystrokes are
cleared, and will be returned from the `KeystrokeInput::keystrokes()`
method if no new keystrokes were entered.

Additionally fixed a bug in `KeymapFile::update_keybinding` where
semantically identical contexts would be treated as unequal due to
formatting differences.

Release Notes:

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

## Parents

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

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