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.

Windows/send keystrokes (#44707)

localcc8bd4d866b94d
diff --git a/crates/workspace/src/workspace.rs b/crates/workspace/src/workspace.rs
index c445ed78224..d2a9ef71fc7 100644
--- a/crates/workspace/src/workspace.rs
+++ b/crates/workspace/src/workspace.rs
@@ -2452,6 +2452,12 @@ impl Workspace {
.0
.split(' ')
.flat_map(|k| Keystroke::parse(k).log_err())
+ .map(|k| {
+ cx.keyboard_mapper()
+ .map_key_equivalent(k, true)
+ .inner()
+ .clone()
+ })
.collect();
let _ = self.send_keystrokes_impl(keystrokes, window, cx);
}