# Git commit modal command \(\#26405\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 4d1d8d6d78475ef723b17692b06026bc8ed4842c

Requested commit: 4d1d8d6d78475ef723b17692b06026bc8ed4842c

Commit: 4d1d8d6d78475ef723b17692b06026bc8ed4842c

Tree: 9e122584d366871f3b2c9b0980c3ed89d1fee4c1

Author: Conrad Irwin

Committer: GitHub

## Message

```
Git commit modal command (#26405)

Fix KeyBinding::for_action() to use the active focus handle instead of
what was
rendered last.

This makes the UI consistently chose the cmd-escape binding for close
(because escape in the editor is editor::Cancel?),
so force it to be "escape"

Release Notes:

- git: Fixed escape tooltip in commit modal
```

## Parents

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

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