You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
Merge pull request #32232 from Paulb23/issue_32070_goto_doc_when_selecting
Fixed going to doc reference while selecting text
This commit is contained in:
@@ -2455,7 +2455,7 @@ void TextEdit::_gui_input(const Ref<InputEvent> &p_gui_input) {
|
|||||||
if (mm.is_valid()) {
|
if (mm.is_valid()) {
|
||||||
|
|
||||||
if (select_identifiers_enabled) {
|
if (select_identifiers_enabled) {
|
||||||
if (mm->get_command() && mm->get_button_mask() == 0) {
|
if (!dragging_minimap && !dragging_selection && mm->get_command() && mm->get_button_mask() == 0) {
|
||||||
|
|
||||||
String new_word = get_word_at_pos(mm->get_position());
|
String new_word = get_word_at_pos(mm->get_position());
|
||||||
if (new_word != highlighted_word) {
|
if (new_word != highlighted_word) {
|
||||||
@@ -2513,7 +2513,7 @@ void TextEdit::_gui_input(const Ref<InputEvent> &p_gui_input) {
|
|||||||
#endif
|
#endif
|
||||||
if (select_identifiers_enabled) {
|
if (select_identifiers_enabled) {
|
||||||
|
|
||||||
if (k->is_pressed()) {
|
if (k->is_pressed() && !dragging_minimap && !dragging_selection) {
|
||||||
|
|
||||||
highlighted_word = get_word_at_pos(get_local_mouse_position());
|
highlighted_word = get_word_at_pos(get_local_mouse_position());
|
||||||
update();
|
update();
|
||||||
|
|||||||
Reference in New Issue
Block a user