aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2007-05-26 17:08:33 +0000
committerEugene Sandulenko2007-05-26 17:08:33 +0000
commitcc24af3671418deb49de795fe5f59ab53d60c3f0 (patch)
tree2129175ed6b6949ea50609d632f17a1a5fe8d816
parenta26a36dad668f4ab04d89722b33298b1369d3cc0 (diff)
downloadscummvm-rg350-cc24af3671418deb49de795fe5f59ab53d60c3f0.tar.gz
scummvm-rg350-cc24af3671418deb49de795fe5f59ab53d60c3f0.tar.bz2
scummvm-rg350-cc24af3671418deb49de795fe5f59ab53d60c3f0.zip
Fix Enter key behavior under MacOS as mentioned in FR #1273746: "BS1: Some
smaller refinements to the GUI" svn-id: r26946
-rw-r--r--engines/sword1/control.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/sword1/control.cpp b/engines/sword1/control.cpp
index aeb9da700b..d8cc03bce5 100644
--- a/engines/sword1/control.cpp
+++ b/engines/sword1/control.cpp
@@ -327,7 +327,8 @@ uint8 Control::getClicks(uint8 mode, uint8 *retVal) {
uint8 flag = 0;
if (_keyPressed == 27)
flag = kButtonCancel;
- else if (_keyPressed == '\r' || _keyPressed == '\n')
+ // 3 is num keypad Enter on Macs. See FR #1273746
+ else if (_keyPressed == '\r' || _keyPressed == '\n' || _keyPressed == 3)
flag = kButtonOk;
if (flag) {