[Scummvm-cvs-logs] SF.net SVN: scummvm: [26946] scummvm/trunk/engines/sword1/control.cpp
sev at users.sourceforge.net
sev at users.sourceforge.net
Sat May 26 19:08:34 CEST 2007
Revision: 26946
http://scummvm.svn.sourceforge.net/scummvm/?rev=26946&view=rev
Author: sev
Date: 2007-05-26 10:08:33 -0700 (Sat, 26 May 2007)
Log Message:
-----------
Fix Enter key behavior under MacOS as mentioned in FR #1273746: "BS1: Some
smaller refinements to the GUI"
Modified Paths:
--------------
scummvm/trunk/engines/sword1/control.cpp
Modified: scummvm/trunk/engines/sword1/control.cpp
===================================================================
--- scummvm/trunk/engines/sword1/control.cpp 2007-05-26 17:01:32 UTC (rev 26945)
+++ scummvm/trunk/engines/sword1/control.cpp 2007-05-26 17:08:33 UTC (rev 26946)
@@ -327,7 +327,8 @@
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) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list