[colobot] 260/390: Corrected the problem where every key acted as Enter
Didier Raboud
odyx at moszumanska.debian.org
Fri Jun 12 14:21:52 UTC 2015
This is an automated email from the git hooks/post-receive script.
odyx pushed a commit to branch upstream/latest
in repository colobot.
commit cb95f9947cee11f30e2a2fa03a15e462c8fe2d21
Author: Tomasz Kapuściński <tomaszkax86 at gmail.com>
Date: Tue Jan 27 18:18:27 2015 +0100
Corrected the problem where every key acted as Enter
---
src/ui/edit.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/ui/edit.cpp b/src/ui/edit.cpp
index 26aa9f7..1b74561 100644
--- a/src/ui/edit.cpp
+++ b/src/ui/edit.cpp
@@ -451,7 +451,7 @@ bool CEdit::EventProcess(const Event &event)
return true;
}
- if ( event.key.key == ( KEY(RETURN) && !bControl ) || ( KEY(KP_ENTER) && !bControl ) )
+ if ( !bControl && ( event.key.key == KEY(RETURN) || event.key.key == KEY(KP_ENTER) ) )
{
Insert('\n');
SendModifEvent();
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/colobot.git
More information about the Pkg-games-commits
mailing list