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.

terminal: Swap right and middle mouse button mappings (#59844)

he-thinkse6ea825ffabb
diff --git a/crates/terminal/src/mappings/mouse.rs b/crates/terminal/src/mappings/mouse.rs
index 7a883034753..fa5edaee256 100644
--- a/crates/terminal/src/mappings/mouse.rs
+++ b/crates/terminal/src/mappings/mouse.rs
@@ -52,8 +52,8 @@ impl MouseButtonCode {
fn from_button(e: MouseButton) -> Self {
match e {
gpui::MouseButton::Left => MouseButtonCode::LeftButton,
- gpui::MouseButton::Right => MouseButtonCode::MiddleButton,
- gpui::MouseButton::Middle => MouseButtonCode::RightButton,
+ gpui::MouseButton::Middle => MouseButtonCode::MiddleButton,
+ gpui::MouseButton::Right => MouseButtonCode::RightButton,
gpui::MouseButton::Navigate(_) => MouseButtonCode::Other,
}
}