zed/crates/ui/src
Dov Alperin 0b1a589183
keymap: Allow modifiers as keys (#12047)
It is sometimes desirable to allow modifers to serve as keys themselves
for the purposes of keybinds. For example, the popular keybind in
jetbrains IDEs `shift shift` which opens the file finder.

This change treats modifers in the keymaps as keys themselves if they
are not accompanied by a key they are modifying.

Further this change wires up they key dispatcher to treat modifer change
events as key presses which are considered for matching against
keybinds.


Release Notes:

- Fixes #6460

---------

Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
2024-06-25 10:17:23 -06:00
..
components keymap: Allow modifiers as keys (#12047) 2024-06-25 10:17:23 -06:00
styles Allow UI font weight to be assigned in settings (#12333) 2024-05-26 23:06:58 -06:00
utils Bring Jupyter to Zed Editing (#12062) 2024-06-17 10:02:31 -07:00
clickable.rs Prompt Library Refinements (#13470) 2024-06-25 11:43:30 -04:00
components.rs ui: Remove unused CollapsibleContainer component (#13009) 2024-06-13 16:30:11 -04:00
disableable.rs
fixed.rs
prelude.rs Add Tool Strip (#11756) 2024-05-13 17:58:08 -04:00
selectable.rs
styled_ext.rs Make border methods always require an explicit width (#11450) 2024-05-06 13:22:47 -04:00
styles.rs Add wiring for UI density (#11260) 2024-05-01 14:28:52 -04:00
ui.rs Add WithRemSize element (#11928) 2024-05-16 14:37:55 -04:00
utils.rs
visible_on_hover.rs
with_rem_size.rs ui: Don't break flex layout when using WithRemSize (#12076) 2024-05-20 21:39:18 -04:00