diff options
author | Max Horn | 2007-06-22 23:12:24 +0000 |
---|---|---|
committer | Max Horn | 2007-06-22 23:12:24 +0000 |
commit | 8a721de91ca4fa2f4043dfab49aff0db79e7272f (patch) | |
tree | 0758f3a17ca9b3d4a474c0404524053b903de686 /engines | |
parent | a041ef23174a21eb42285e8c518f38b81468b13d (diff) | |
download | scummvm-rg350-8a721de91ca4fa2f4043dfab49aff0db79e7272f.tar.gz scummvm-rg350-8a721de91ca4fa2f4043dfab49aff0db79e7272f.tar.bz2 scummvm-rg350-8a721de91ca4fa2f4043dfab49aff0db79e7272f.zip |
AGI: Properly handle backspace key on all systems, not just OS X
svn-id: r27638
Diffstat (limited to 'engines')
-rw-r--r-- | engines/agi/agi.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/agi/agi.cpp b/engines/agi/agi.cpp index a79d89bd93..74795271fc 100644 --- a/engines/agi/agi.cpp +++ b/engines/agi/agi.cpp @@ -224,11 +224,12 @@ void AgiEngine::processEvents() { case Common::KEYCODE_KP_ENTER: key = KEY_ENTER; break; + case Common::KEYCODE_BACKSPACE: + key = KEY_BACKSPACE; + break; default: if (key < 256 && !isalpha(key)) { - // Make sure backspace works right (this fixes a small issue on OS X) - if (key != 8) - key = event.kbd.ascii; + key = event.kbd.ascii; break; } if (_keyControl) |