# keymap_ui: Improve conflict resolution for semantically equal contexts \(\#36204\) · gitcafe/zed

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

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

Visibility: public

Requested revision: ca139b701e20517260baf31602e2840e483b772b

Requested commit: ca139b701e20517260baf31602e2840e483b772b

Commit: ca139b701e20517260baf31602e2840e483b772b

Tree: d1f6e3fa0fb2cbefa1e27df278f50a836aa6403a

Author: Ben Kunkle

Committer: GitHub

## Message

```
keymap_ui: Improve conflict resolution for semantically equal contexts (#36204)

Closes #ISSUE

Creates a function named `normalized_ctx_eq` that compares
`gpui::KeybindContextPredicate`'s while taking into account the
associativity of the binary operators. This function is now used to
compare context predicates in the keymap editor, greatly improving the
number of cases caught by our overloading and conflict detection

Release Notes:

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

## Parents

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

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