aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Kiewitz2010-05-15 21:28:26 +0000
committerMartin Kiewitz2010-05-15 21:28:26 +0000
commit5e4868fb008712d6504f0c1dab51b3566998b55f (patch)
tree2bca96b15abe6431e2e7aeec55357b41d17aa232
parentae4da9debe1d46815190470fde4ab2e0dddb0b6a (diff)
downloadscummvm-rg350-5e4868fb008712d6504f0c1dab51b3566998b55f.tar.gz
scummvm-rg350-5e4868fb008712d6504f0c1dab51b3566998b55f.tar.bz2
scummvm-rg350-5e4868fb008712d6504f0c1dab51b3566998b55f.zip
SCI: handle TAB like Ctrl-I on menu key checking, sci0 also did it that way - makes TAB work for inventory in iceman/qfg1ega
svn-id: r49044
-rw-r--r--engines/sci/graphics/menu.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/sci/graphics/menu.cpp b/engines/sci/graphics/menu.cpp
index bb9551d126..5e3b419fe3 100644
--- a/engines/sci/graphics/menu.cpp
+++ b/engines/sci/graphics/menu.cpp
@@ -392,6 +392,11 @@ reg_t GfxMenu::kernelSelect(reg_t eventObject) {
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;