diff --git a/src/FbTk/TextBox.cc b/src/FbTk/TextBox.cc index e1f9e321..8c0af879 100644 --- a/src/FbTk/TextBox.cc +++ b/src/FbTk/TextBox.cc @@ -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;