From ed75e883db8426e889a46ce61b9f4bd1a4d6bc66 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Thomas=20L=C3=BCbking?= <thomas.luebking@gmail.com>
Date: Fri, 22 Jul 2016 23:50:51 +0200
Subject: clear selection on text input

Entering upcase chars would auto-select them
Seems I don't need upcase chars very often ;-)
---
 src/FbTk/TextBox.cc | 1 +
 1 file changed, 1 insertion(+)

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) {
         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;
-- 
cgit v0.11.2