mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-06 18:46:49 +00:00
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. |
||
---|---|---|
.. | ||
app | ||
elements | ||
keymap_matcher | ||
platform | ||
scene | ||
views | ||
app.rs | ||
assets.rs | ||
clipboard.rs | ||
color.rs | ||
elements.rs | ||
executor.rs | ||
font_cache.rs | ||
fonts.rs | ||
geometry.rs | ||
gpui.rs | ||
image_data.rs | ||
json.rs | ||
keymap_matcher.rs | ||
platform.rs | ||
scene.rs | ||
test.rs | ||
text_layout.rs | ||
util.rs | ||
views.rs |