[Scummvm-cvs-logs] SF.net SVN: scummvm: [27638] scummvm/trunk/engines/agi/agi.cpp

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Sat Jun 23 01:12:24 CEST 2007


Revision: 27638
          http://scummvm.svn.sourceforge.net/scummvm/?rev=27638&view=rev
Author:   fingolfin
Date:     2007-06-22 16:12:24 -0700 (Fri, 22 Jun 2007)

Log Message:
-----------
AGI: Properly handle backspace key on all systems, not just OS X

Modified Paths:
--------------
    scummvm/trunk/engines/agi/agi.cpp

Modified: scummvm/trunk/engines/agi/agi.cpp
===================================================================
--- scummvm/trunk/engines/agi/agi.cpp	2007-06-22 23:03:12 UTC (rev 27637)
+++ scummvm/trunk/engines/agi/agi.cpp	2007-06-22 23:12:24 UTC (rev 27638)
@@ -224,11 +224,12 @@
 			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)


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