請問editbox如何一開始就是輸入狀態

大家好,請問如何設定editbox一開始是輸入狀態,不經觸摸,我看過api也沒有這個方法:mask:

Creator 版本号:1.3.3

web平台有一个 stayOnTop 属性,勾选,然后调用 setFocus 就可以开始输入了。

thank you for reply!!! but still no work :sweat:



:disappointed:

你有看过 example-cases 的这个测试例吗?

点击下面的 focus 按钮就可以开始输入了。

hi zilong, still can’t focus when i was click the button:sob:

oops… which platform do you work on? What’s the browser version?

run on simulator, the browser version is chrome Version 58.0.3029.110, ummm may I ask one more question? maybe I can touch the editbox by coding , but how?

maybe you could try the method listed in this thread:

http://forum.cocos.com/t/cceditbox-engine/46015

sorry, I still don’t get it how to do it ? use c++ class??

So you are trying to achieve the auto focus state before typing in native environment? I’m sorry it can’t be done ATM.
I will fix this issue in future release.