aboutsummaryrefslogtreecommitdiff
path: root/scene/gui/text_edit.cpp
diff options
context:
space:
mode:
authorBiliogadafr2015-05-02 00:03:49 +0300
committerBiliogadafr2015-05-02 00:03:49 +0300
commit8e7973d660b1f7bc25323b8ef843310f1deb2107 (patch)
tree1149699c65471483192c832b86b09182a50444a6 /scene/gui/text_edit.cpp
parent88d078df1e72bcf7caf82761d9a86cb920527cb7 (diff)
downloadgodot-8e7973d660b1f7bc25323b8ef843310f1deb2107.tar.gz
godot-8e7973d660b1f7bc25323b8ef843310f1deb2107.tar.zst
godot-8e7973d660b1f7bc25323b8ef843310f1deb2107.zip
Triple click doesn't select line if click was done on different lines. Fix #1727
Diffstat (limited to '')
-rw-r--r--scene/gui/text_edit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp
index 1e8243216..6cdff20aa 100644
--- a/scene/gui/text_edit.cpp
+++ b/scene/gui/text_edit.cpp
@@ -1249,7 +1249,7 @@ void TextEdit::_input_event(const InputEvent& p_input_event) {
}
- if (!mb.doubleclick && (OS::get_singleton()->get_ticks_msec()-last_dblclk)<600) {
+ if (!mb.doubleclick && (OS::get_singleton()->get_ticks_msec()-last_dblclk)<600 && cursor.line==prev_line) {
//tripleclick select line
select(cursor.line,0,cursor.line,text[cursor.line].length());
last_dblclk=0;