From 37c46fecbfa12e85595e202d5635a8ce82386590 Mon Sep 17 00:00:00 2001 From: D G Turner Date: Mon, 5 May 2014 05:21:23 +0100 Subject: ANDROID: Fix correct keycode in keymapper for virtual keyboard trigger. As the virtual keyboard trigger has been moved to CTRL-F7, the previous code which generates a unmodified F7 event to do this will not work. However, due to the complexity of this code, directly calling the virtual keyboard trigger event could have side effects, so have instead just added the CTRL modifier to fix this. This should be fixed if possible to use EVENT_VIRTUAL_KEYBOARD. --- backends/platform/android/events.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backends') diff --git a/backends/platform/android/events.cpp b/backends/platform/android/events.cpp index c60626ec36..8039981a92 100644 --- a/backends/platform/android/events.cpp +++ b/backends/platform/android/events.cpp @@ -263,7 +263,7 @@ void OSystem_Android::setupKeymapper() { Action *act; act = new Action(globalMap, "VIRT", "Display keyboard"); - act->addKeyEvent(KeyState(KEYCODE_F7, ASCII_F7, 0)); + act->addKeyEvent(KeyState(KEYCODE_F7, ASCII_F7, KBD_CTRL)); mapper->addGlobalKeymap(globalMap); -- cgit v1.2.3