editor: Fix setting multi_cursor_modifier opens implementation in new pane instead of new tab (#41963)

Closes #41014

Release Notes:

- Fixed an issue where `multi_cursor_modifier` set to `cmd_or_ctrl`
opens implementation in new pane instead of new tab.
This commit is contained in:
Smit Barmase
2025-11-05 11:31:56 +05:30
committed by GitHub
parent 0da52d6774
commit c83621fa1f
3 changed files with 20 additions and 20 deletions
+2 -2
View File
@@ -820,7 +820,7 @@ impl EditorElement {
editor.select(
SelectPhase::Begin {
position,
add: Editor::multi_cursor_modifier(true, &modifiers, cx),
add: Editor::is_alt_pressed(&modifiers, cx),
click_count,
},
window,
@@ -1004,7 +1004,7 @@ impl EditorElement {
let text_hitbox = &position_map.text_hitbox;
let pending_nonempty_selections = editor.has_pending_nonempty_selection();
let hovered_link_modifier = Editor::multi_cursor_modifier(false, &event.modifiers(), cx);
let hovered_link_modifier = Editor::is_cmd_or_ctrl_pressed(&event.modifiers(), cx);
if let Some(mouse_position) = event.mouse_position()
&& !pending_nonempty_selections