Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

editor: Fix certain unwanted pre-emptive keys been shown in buffer (#32528)

Smit Barmase6d9bcdb2af60
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs
index 5f25cab132e..412333f15f1 100644
--- a/crates/editor/src/editor.rs
+++ b/crates/editor/src/editor.rs
@@ -19742,7 +19742,7 @@ impl Editor {
.flatten()
.filter_map(|keystroke| {
if keystroke.modifiers.is_subset_of(&Modifiers::shift()) {
- Some(keystroke.key_char.clone().unwrap_or(keystroke.key.clone()))
+ keystroke.key_char.clone()
} else {
None
}