clear selection on text input

Entering upcase chars would auto-select them
Seems I don't need upcase chars very often ;-)
This commit is contained in:
Thomas Lübking 2016-07-22 23:50:51 +02:00
parent 69756527d5
commit ed75e883db

View file

@ -405,6 +405,7 @@ void TextBox::keyPressEvent(XKeyEvent &event) {
std::string val;
val += keychar[0];
insertText(val);
m_select_pos = std::string::npos;
}
if ((event.state & ShiftMask) != ShiftMask)
m_select_pos = std::string::npos;