From 5e4868fb008712d6504f0c1dab51b3566998b55f Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Sat, 15 May 2010 21:28:26 +0000 Subject: 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 --- engines/sci/graphics/menu.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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; -- cgit v1.2.3