[Scummvm-cvs-logs] scummvm master -> 60bad3754b54e7cf178b54a9db6c487403289d71

bluegr md5 at scummvm.org
Thu Mar 10 02:12:50 CET 2011

This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

60bad3754b SCI: Fixed regression (shift key) in the latest event code cleanup

Commit: 60bad3754b54e7cf178b54a9db6c487403289d71
Author: md5 (md5 at scummvm.org)
Date: 2011-03-09T17:11:23-08:00

Commit Message:
SCI: Fixed regression (shift key) in the latest event code cleanup

Changed paths:

diff --git a/engines/sci/event.cpp b/engines/sci/event.cpp
index cb0e6b3..dce776a 100644
--- a/engines/sci/event.cpp
+++ b/engines/sci/event.cpp
@@ -248,7 +248,7 @@ SciEvent EventManager::getScummVMEvent() {
 	// When Ctrl AND Alt are pressed together with a regular key, Linux will give us control-key, Windows will give
 	//  us the actual key. My opinion is that windows is right, because under DOS the keys worked the same, anyway
 	//  we support the other case as well
-	if ((modifiers & Common::KBD_SHIFT) && input.character < 27)
+	if ((modifiers & Common::KBD_SHIFT) && input.character > 0 && input.character < 27)
 		input.character += 96; // 0x01 -> 'a'
 	if (getSciVersion() <= SCI_VERSION_1_MIDDLE) {

More information about the Scummvm-git-logs mailing list