diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-05-30 19:38:57 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-05-30 19:38:57 +0300 |
commit | a7db0a290270d7cdd5ee57477f49a9a210bcf92d (patch) | |
tree | 80f7895ef16db8944ccb6d3d02b4a3b96806f07f /src | |
parent | 650055f8e47fe769e565741cc010c273e81f19b3 (diff) | |
download | plus-a7db0a290270d7cdd5ee57477f49a9a210bcf92d.tar.gz plus-a7db0a290270d7cdd5ee57477f49a9a210bcf92d.tar.bz2 plus-a7db0a290270d7cdd5ee57477f49a9a210bcf92d.tar.xz plus-a7db0a290270d7cdd5ee57477f49a9a210bcf92d.zip |
Fix after last changes in input handling.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/widgets/textfield.cpp | 5 |
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; } } |