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:
parent
69756527d5
commit
ed75e883db
1 changed files with 1 additions and 0 deletions
|
@ -405,6 +405,7 @@ void TextBox::keyPressEvent(XKeyEvent &event) {
|
||||||
std::string val;
|
std::string val;
|
||||||
val += keychar[0];
|
val += keychar[0];
|
||||||
insertText(val);
|
insertText(val);
|
||||||
|
m_select_pos = std::string::npos;
|
||||||
}
|
}
|
||||||
if ((event.state & ShiftMask) != ShiftMask)
|
if ((event.state & ShiftMask) != ShiftMask)
|
||||||
m_select_pos = std::string::npos;
|
m_select_pos = std::string::npos;
|
||||||
|
|
Loading…
Reference in a new issue