Merge pull request #1772 from Biliogadafr/Tripleclick
Tripleclick now doesn't select line if clicks was done on different lines. Fix #1727
This commit is contained in:
commit
f64fcc42ef
1 changed files with 1 additions and 1 deletions
|
@ -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
|
//tripleclick select line
|
||||||
select(cursor.line,0,cursor.line,text[cursor.line].length());
|
select(cursor.line,0,cursor.line,text[cursor.line].length());
|
||||||
last_dblclk=0;
|
last_dblclk=0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue