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:
Rémi Verschelde 2019-09-23 15:00:41 +02:00 committed by GitHub
commit fc47569be9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2455,7 +2455,7 @@ void TextEdit::_gui_input(const Ref<InputEvent> &p_gui_input) {
if (mm.is_valid()) {
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());
if (new_word != highlighted_word) {
@ -2513,7 +2513,7 @@ void TextEdit::_gui_input(const Ref<InputEvent> &p_gui_input) {
#endif
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());
update();