summaryrefslogtreecommitdiff
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
parent650055f8e47fe769e565741cc010c273e81f19b3 (diff)
downloadmv-a7db0a290270d7cdd5ee57477f49a9a210bcf92d.tar.gz
mv-a7db0a290270d7cdd5ee57477f49a9a210bcf92d.tar.bz2
mv-a7db0a290270d7cdd5ee57477f49a9a210bcf92d.tar.xz
mv-a7db0a290270d7cdd5ee57477f49a9a210bcf92d.zip
Fix after last changes in input handling.
-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;
}
}