aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Lübking <thomas.luebking@gmail.com>2016-07-22 21:50:51 (GMT)
committerThomas Lübking <thomas.luebking@gmail.com>2016-07-23 14:58:04 (GMT)
commited75e883db8426e889a46ce61b9f4bd1a4d6bc66 (patch)
tree0c6185f862c08b468780dc23f5f8f6ce04a03a77
parent69756527d5cf184d9fae76e997724d7d5653e2c3 (diff)
downloadfluxbox-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.cc1
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;