This could possibly fix bug #1551524 ("MAXOSX: Cannot Backspace in AGI Games").

We have a similar backspace handling in several other engines.

svn-id: r23827
This commit is contained in:
Torbjörn Andersson 2006-09-04 18:57:12 +00:00
parent 92f2e9691e
commit c49cf0c6ed

View File

@ -217,7 +217,9 @@ static void process_events() {
break;
default:
if (key < 256 && !isalpha(key)) {
key = event.kbd.ascii;
// Make sure backspace works right (this fixes a small issue on OS X)
if (key != 8)
key = event.kbd.ascii;
break;
}
if (key_control)