Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve editbox webchat v1.3 #1170

Merged
merged 5 commits into from
Oct 9, 2016

Conversation

zilongshanren
Copy link
Contributor

@zilongshanren zilongshanren commented Oct 9, 2016

Re: cocos-creator/fireball#3885 cocos-creator/fireball#3655 cocos-creator/fireball#4180

Changes proposed in this pull request:

  • 提供一个选项让 editBox 的 DOM 元素永远显示在 canvas 上面
  • 新增一个 setFocus API 用来指定某一个 editBox 获取焦点,但是这种方法在 iOS 微信的iframe里面会导致无法输入文字
  • 新增 tabIndex 属性和 stayOnTop 属性,当 stayOnTop 为 true 则,可以通过设置 tabIndex 来控件 Tab 键的 focus 行为

如果想在 iOS 微信 iframe 里面使用 EditBox,需要把 stayOnTop 属性设置为 true 就可以了。

@cocos-creator/engine-admins

@zilongshanren
Copy link
Contributor Author

test case: cocos/example-projects#248

@zilongshanren
Copy link
Contributor Author

docs: cocos/cocos-docs#6

@nantas nantas merged commit e91bd5f into cocos:v1.3 Oct 9, 2016
@zilongshanren zilongshanren deleted the improve-editbox-webchat-v1.3 branch October 9, 2016 06:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants