fbtk, textbox, fix selection release on click
This commit is contained in:
parent
3ae7b81ae1
commit
f19bb5787f
1 changed files with 2 additions and 0 deletions
|
@ -285,6 +285,8 @@ void TextBox::buttonPressEvent(XButtonEvent &event) {
|
|||
}
|
||||
}
|
||||
m_cursor_pos = click_pos - m_start_pos;
|
||||
m_select_pos = std::string::npos; // clear select
|
||||
adjustPos();
|
||||
clear();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue