summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-05-30 19:38:57 +0300
committerAndrei Karas <akaras@inbox.ru>2012-05-30 19:38:57 +0300
commita7db0a290270d7cdd5ee57477f49a9a210bcf92d (patch)
tree80f7895ef16db8944ccb6d3d02b4a3b96806f07f /src/gui
parent650055f8e47fe769e565741cc010c273e81f19b3 (diff)
downloadplus-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/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;
}
}