ZIm/crates/gpui/src
Antonio Scandurra 318deed25b Skip key down event if preceded by its key equivalent version
Previously, we would only track whether the previous key down event
was a key equivalent. However, this could cause issues when pressing
certain keystrokes in rapid succession, e.g.:

- Pressing `shift-right` (to select a character)
- Pressing a character (with or without `shift` held down)

This would cause GPUI to ignore the second event because it was
preceded by a key equivalent event. With this commit, we track the
last key equivalent event, and skip the key down event only if it
matches the last key equivalent event.
2023-07-07 12:02:08 +02:00
..
app Z-2276/Z-2275: Project & Branch switchers (#2662) 2023-07-05 13:09:40 -04:00
elements fmt 2023-06-28 16:35:57 -07:00
keymap_matcher Remove redundant scopes and actions to fix the focus toggle on ESC 2023-05-15 13:10:15 +03:00
platform Skip key down event if preceded by its key equivalent version 2023-07-07 12:02:08 +02:00
scene fmt 2023-06-28 16:35:57 -07:00
views Remove ViewContext::dispatch_action 2023-05-01 16:27:36 +02:00
app.rs Z-2276/Z-2275: Project & Branch switchers (#2662) 2023-07-05 13:09:40 -04:00
assets.rs Add png image loading to gpui 2023-03-06 14:26:32 -08:00
clipboard.rs Move all crates to a top-level crates folder 2021-10-04 13:22:21 -06:00
color.rs Change color representation in json schema 2023-06-19 11:47:11 -07:00
elements.rs Add a derive macro for Element 2023-06-25 07:51:50 -06:00
executor.rs Fix deafened -> enabled mistranslation 2023-06-20 15:17:49 -07:00
font_cache.rs feat: add JsonSchema to gpui 2023-06-16 21:36:42 +02:00
fonts.rs Tidy up font schema a little 2023-06-19 11:36:42 -07:00
geometry.rs One big cleanup pass of clippy lints 2022-08-10 16:51:01 -07:00
gpui.rs Accept null as a valid action, to disable a keystroke 2023-07-04 21:11:28 +03:00
image_data.rs Move all crates to a top-level crates folder 2021-10-04 13:22:21 -06:00
json.rs Move all crates to a top-level crates folder 2021-10-04 13:22:21 -06:00
keymap_matcher.rs Fix typos 2023-06-02 22:02:19 -04:00
platform.rs Add JsonSchema to container style and fix compile errors 2023-06-19 11:31:17 -07:00
scene.rs feat: add JsonSchema to gpui 2023-06-16 21:36:42 +02:00
test.rs Move methods querying window state into AsyncAppContext 2023-05-02 19:38:48 +02:00
text_layout.rs Add a test 2023-05-08 19:36:51 +03:00
util.rs Make timer method available on both foreground and background executors 2022-03-04 13:54:07 -08:00
views.rs Merge MutableAppContext into AppContext 2023-04-06 15:49:03 -06:00