summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/widgets/textfield.cpp5
1 files changed, 4 insertions, 1 deletions
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;
}
}