[Scummvm-cvs-logs] SF.net SVN: scummvm:[49044] scummvm/trunk/engines/sci/graphics/menu.cpp

m_kiewitz at users.sourceforge.net m_kiewitz at users.sourceforge.net
Sat May 15 23:28:27 CEST 2010


Revision: 49044
          http://scummvm.svn.sourceforge.net/scummvm/?rev=49044&view=rev
Author:   m_kiewitz
Date:     2010-05-15 21:28:26 +0000 (Sat, 15 May 2010)

Log Message:
-----------
SCI: handle TAB like Ctrl-I on menu key checking, sci0 also did it that way - makes TAB work for inventory in iceman/qfg1ega

Modified Paths:
--------------
    scummvm/trunk/engines/sci/graphics/menu.cpp

Modified: scummvm/trunk/engines/sci/graphics/menu.cpp
===================================================================
--- scummvm/trunk/engines/sci/graphics/menu.cpp	2010-05-15 15:59:46 UTC (rev 49043)
+++ scummvm/trunk/engines/sci/graphics/menu.cpp	2010-05-15 21:28:26 UTC (rev 49044)
@@ -392,6 +392,11 @@
 	case SCI_EVENT_KEYBOARD:
 		keyPress = GET_SEL32V(_segMan, eventObject, SELECTOR(message));
 		keyModifier = GET_SEL32V(_segMan, eventObject, SELECTOR(modifiers));
+		// If tab got pressed, handle it here as if it was Ctrl-I - at least sci0 also did it that way
+		if (keyPress == SCI_KEY_TAB) {
+			keyModifier = SCI_KEYMOD_CTRL;
+			keyPress = 'i';
+		}
 		switch (keyPress) {
 		case 0:
 			break;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list