diff options
Diffstat (limited to 'engines/agi/agi.cpp')
-rw-r--r-- | engines/agi/agi.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/engines/agi/agi.cpp b/engines/agi/agi.cpp index 33a1f669c3..0a1589703d 100644 --- a/engines/agi/agi.cpp +++ b/engines/agi/agi.cpp @@ -219,11 +219,9 @@ void AgiEngine::processEvents() { key = KEY_BACKSPACE; break; default: - if (key < 256 && !isalpha(key)) { + if (key < 256 && !isalpha(key)) key = event.kbd.ascii; - break; - } - if (event.kbd.flags & Common::KBD_CTRL) + else if (event.kbd.flags & Common::KBD_CTRL) key = (key & ~0x20) - 0x40; else if (event.kbd.flags & Common::KBD_ALT) key = scancodeTable[(key & ~0x20) - 0x41] << 8; |