cocos2d / cocos2d-x

Cocos2d-x is a suite of open-source, cross-platform, game-development tools utilized by millions of developers across the globe. Its core has evolved to serve as the foundation for Cocos Creator 1.x & 2.x.

Home Page:https://www.cocos.com/en/cocos2d-x

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

4.0 editbox 安卓上将游戏置到后台后,再打开游戏,点击editbox就无法再调起软键盘

lezard618 opened this issue · comments

  • cocos2d-x version:4.0
  • devices test on: android 9.0
  • developing environments
    • NDK version:21
    • Xcode version:
    • VS version:
    • browser type and version:

Steps to Reproduce:

调查了下是再次将CocosAcitvity放到前台的时候,被重新创建了,所以就丢失了java侧的editbox,但是从c++重新创建了对应的java的editbox过后,发现新创建的java侧的editbox无法获取焦点focus,所以永远没法调起键盘。