From a7db0a290270d7cdd5ee57477f49a9a210bcf92d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 30 May 2012 19:38:57 +0300 Subject: Fix after last changes in input handling. --- src/gui/widgets/textfield.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/gui/widgets/textfield.cpp b/src/gui/widgets/textfield.cpp index 4f8f0d093..6929a80a2 100644 --- a/src/gui/widgets/textfield.cpp +++ b/src/gui/widgets/textfield.cpp @@ -207,7 +207,8 @@ void TextField::keyPressed(gcn::KeyEvent &keyEvent) mText.insert(mCaretPosition, std::string(buf)); mCaretPosition += 1; keyEvent.consume(); - logger->log("TextField::keyPressed1"); + if (mSendAlwaysEvents) + distributeActionEvent(); return; } } @@ -237,6 +238,8 @@ void TextField::keyPressed(gcn::KeyEvent &keyEvent) mText.insert(mCaretPosition, std::string(buf, buf + len)); mCaretPosition += len; keyEvent.consume(); + if (mSendAlwaysEvents) + distributeActionEvent(); return; } } -- cgit v1.2.3-70-g09d2