[colobot] 258/390: Numerical Enter key should now act the same as normal Enter (#427)
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 dfda70af0774604cfeefafb7be922c4b81adf226
Author: tomangelo2 <tomangelo at wp.pl>
Date: Sun Jan 18 12:47:37 2015 +0100
Numerical Enter key should now act the same as normal Enter (#427)
---
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 7f1e6ff..26aa9f7 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 )
+ if ( event.key.key == ( KEY(RETURN) && !bControl ) || ( KEY(KP_ENTER) && !bControl ) )
{
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