浏览代码

Fixed delete on android text fields
Text boxes delete characters in reaction to the backspace key down event, not the char event. On Android, the key down event was not being passed to the form. This is why only backspace wasn't working.

Darryl Gough 12 年之前
父节点
当前提交
9b17ad9291
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gameplay/src/PlatformAndroid.cpp

+ 1 - 1
gameplay/src/PlatformAndroid.cpp

@@ -1028,7 +1028,7 @@ static int32_t engine_handle_input(struct android_app* app, AInputEvent* event)
         switch(action)
         switch(action)
         {
         {
             case AKEY_EVENT_ACTION_DOWN:
             case AKEY_EVENT_ACTION_DOWN:
-                Game::getInstance()->keyEvent(Keyboard::KEY_PRESS, getKey(keycode, metastate));
+                gameplay::Platform::keyEventInternal(Keyboard::KEY_PRESS, getKey(keycode, metastate));
                 if (int character = getUnicode(keycode, metastate))
                 if (int character = getUnicode(keycode, metastate))
                     gameplay::Platform::keyEventInternal(Keyboard::KEY_CHAR, character);
                     gameplay::Platform::keyEventInternal(Keyboard::KEY_CHAR, character);
                 break;
                 break;