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.
https://www.cocos.com/en/cocos2d-x
18.22k stars 7.05k forks source link

editbox doesn't show cursor and input text in android #16864

Closed flyingkisser closed 7 years ago

flyingkisser commented 7 years ago
  1. git clone https://github.com/cocos2d/cocos2d-x.git ./download-deps.py cd tests/js-tests cocos run -p android

  2. goto Extensions Test->EditBoxTest

  3. click the fourth EditBox, 7 times in 10 I won't see the input cursor and inputed text. wechatimg1

4.when click the down button in the soft keyboard, you will see the inputed text. wechatimg2

dumganhar commented 7 years ago

@zilongshanren, could you please check this issue? Thanks.

flyingkisser commented 7 years ago

It's not easy to see this issue in Xiaomi's phone, but 1 in 20 times you still can see it. Very easy to show in LeTV's phone.

zilongshanren commented 7 years ago

@flyingkisser I can't find a LeTV's phone at the moment... Do you see any error message when click the EditBox?

dumganhar commented 7 years ago

What's the input method installed in your phone?

flyingkisser commented 7 years ago

I tried 10 times in my xiaomi 5 , this issues appears again. By logcat nothing occurs. my input app in xiaomi5 is sogo, in LeTV phone1 that is xunfei.

1 2 3

flyingkisser commented 7 years ago

any ideas about this issue?

zilongshanren commented 7 years ago

@flyingkisser I have fixed it, could you please give it a test?

flyingkisser commented 7 years ago

@zilongshanren sure, maybe I'll test it on this weekend.

zilongshanren commented 7 years ago

@flyingkisser thanks