aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/TextBox.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/TextBox.cc')
-rw-r--r--src/FbTk/TextBox.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/FbTk/TextBox.cc b/src/FbTk/TextBox.cc
index 01451e4..519b56e 100644
--- a/src/FbTk/TextBox.cc
+++ b/src/FbTk/TextBox.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: TextBox.cc,v 1.2 2003/09/08 21:26:19 fluxgen Exp $ 22// $Id: TextBox.cc,v 1.3 2003/10/05 07:20:47 rathnor Exp $
23 23
24#include "TextBox.hh" 24#include "TextBox.hh"
25#include "Font.hh" 25#include "Font.hh"
@@ -185,8 +185,7 @@ void TextBox::buttonPressEvent(XButtonEvent &event) {
185 185
186void TextBox::keyPressEvent(XKeyEvent &event) { 186void TextBox::keyPressEvent(XKeyEvent &event) {
187 // strip numlock and scrolllock mask 187 // strip numlock and scrolllock mask
188 event.state &= ~FbTk::KeyUtil::numlockMod(); 188 event.state = KeyUtil::cleanMods(event.state);
189 event.state &= ~FbTk::KeyUtil::scrolllockMod();
190 189
191 KeySym ks; 190 KeySym ks;
192 char keychar[1]; 191 char keychar[1];