aboutsummaryrefslogtreecommitdiff
path: root/engines/agi/keyboard.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/agi/keyboard.cpp')
-rw-r--r--engines/agi/keyboard.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/agi/keyboard.cpp b/engines/agi/keyboard.cpp
index 1aabac9053..bb8e99e7de 100644
--- a/engines/agi/keyboard.cpp
+++ b/engines/agi/keyboard.cpp
@@ -171,7 +171,8 @@ int handle_controller(int key) {
}
}
- if ((int)mouse.y >= game.line_user_input * CHAR_LINES &&
+ if (key == BUTTON_LEFT &&
+ (int)mouse.y >= game.line_user_input * CHAR_LINES &&
(int)mouse.y <= (game.line_user_input + 1) * CHAR_LINES) {
if (_text->predictiveDialog()) {
strcpy((char *)game.input_buffer, _text->_predictiveResult);