aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backends/platform/ios7/ios7_osys_events.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/backends/platform/ios7/ios7_osys_events.cpp b/backends/platform/ios7/ios7_osys_events.cpp
index a7e007ea42..0387503739 100644
--- a/backends/platform/ios7/ios7_osys_events.cpp
+++ b/backends/platform/ios7/ios7_osys_events.cpp
@@ -389,6 +389,12 @@ void OSystem_iOS7::handleEvent_keyPressed(Common::Event &event, int keyPressed)
int ascii = keyPressed;
//printf("key: %i\n", keyPressed);
+ // Map LF character to Return key/CR character
+ if (keyPressed == 10) {
+ keyPressed = Common::KEYCODE_RETURN;
+ ascii = Common::ASCII_RETURN;
+ }
+
event.type = Common::EVENT_KEYDOWN;
_queuedInputEvent.type = Common::EVENT_KEYUP;