zed/crates/gpui
Max Brunsfeld 7e810d7e0d
Restore the ability to disable key bindings by setting them to null in your keymap (#3921)
* Fix an incorrect use of `Any::type_id` that prevented the disabling of
key bindings
* Restructured the representation of disabled key bindings so that they
handle context predicates correctly. Previously, to disable key binding,
you needed to supply the exact same context predicate (e.g. `Editor &&
mode == "full"`) as the binding that you are trying to disable. Now, the
context predicates of disabled key bindings are evaluated just like any
other context predicate (with the current context) to see if they apply.

Release Notes:

- Fixed an issue where disabling key bindings didn't work. To disable a
key binding, set it to `null` in your keymap.
2024-01-05 13:51:47 -08:00
..
docs Remove 2 suffix from gpui 2024-01-03 12:59:39 -08:00
src Restore the ability to disable key bindings by setting them to null in your keymap (#3921) 2024-01-05 13:51:47 -08:00
tests Remove 2 suffix from gpui_macros, fix compile errors in tests 2024-01-03 13:12:21 -08:00
build.rs Remove 2 suffix from gpui 2024-01-03 12:59:39 -08:00
Cargo.toml gpui: Remove dependency on sqlez (#3871) 2024-01-05 19:36:55 +01:00