aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/access/room.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/access/room.cpp b/engines/access/room.cpp
index b3c3317307..a781dab24a 100644
--- a/engines/access/room.cpp
+++ b/engines/access/room.cpp
@@ -468,8 +468,8 @@ void Room::doCommands() {
mainAreaClick();
}
} else if (_vm->_events->getKey(keyState)) {
- if (keyState.ascii >= ';' && keyState.ascii <= 'D') {
- handleCommand((int)keyState.ascii - ';');
+ if (keyState.keycode >= Common::KEYCODE_F1 && keyState.keycode <= Common::KEYCODE_F9) {
+ handleCommand(keyState.keycode - Common::KEYCODE_F1 + 1);
}
}
}