Make primary clipboard Linux only (#11843)

I guess only Linux supports the primary clipboard.

Release Notes:

- N/A
This commit is contained in:
张小白
2024-05-15 10:44:47 -07:00
committed by GitHub
parent 1c62839295
commit 4ae3396253
7 changed files with 42 additions and 37 deletions
+2
View File
@@ -530,6 +530,7 @@ impl EditorElement {
cx.stop_propagation();
}
#[cfg(target_os = "linux")]
fn mouse_middle_down(
editor: &mut Editor,
event: &MouseDownEvent,
@@ -3240,6 +3241,7 @@ impl EditorElement {
MouseButton::Right => editor.update(cx, |editor, cx| {
Self::mouse_right_down(editor, event, &position_map, &text_hitbox, cx);
}),
#[cfg(target_os = "linux")]
MouseButton::Middle => editor.update(cx, |editor, cx| {
Self::mouse_middle_down(editor, event, &position_map, &text_hitbox, cx);
}),