diff options
author | Thomas Lübking <thomas.luebking@gmail.com> | 2016-07-22 21:50:51 (GMT) |
---|---|---|
committer | Thomas Lübking <thomas.luebking@gmail.com> | 2016-07-23 14:58:04 (GMT) |
commit | ed75e883db8426e889a46ce61b9f4bd1a4d6bc66 (patch) | |
tree | 0c6185f862c08b468780dc23f5f8f6ce04a03a77 | |
parent | 69756527d5cf184d9fae76e997724d7d5653e2c3 (diff) | |
download | fluxbox-ed75e883db8426e889a46ce61b9f4bd1a4d6bc66.zip fluxbox-ed75e883db8426e889a46ce61b9f4bd1a4d6bc66.tar.bz2 |
clear selection on text input
Entering upcase chars would auto-select them
Seems I don't need upcase chars very often ;-)
-rw-r--r-- | src/FbTk/TextBox.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/FbTk/TextBox.cc b/src/FbTk/TextBox.cc index e1f9e32..8c0af87 100644 --- a/src/FbTk/TextBox.cc +++ b/src/FbTk/TextBox.cc | |||
@@ -405,6 +405,7 @@ void TextBox::keyPressEvent(XKeyEvent &event) { | |||
405 | std::string val; | 405 | std::string val; |
406 | val += keychar[0]; | 406 | val += keychar[0]; |
407 | insertText(val); | 407 | insertText(val); |
408 | m_select_pos = std::string::npos; | ||
408 | } | 409 | } |
409 | if ((event.state & ShiftMask) != ShiftMask) | 410 | if ((event.state & ShiftMask) != ShiftMask) |
410 | m_select_pos = std::string::npos; | 411 | m_select_pos = std::string::npos; |