Skip to content
New issue

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

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

Already on GitHub? # to your account

show() 改为input事件触发 #20

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

ghost
Copy link

@ghost ghost commented Nov 2, 2015

No description provided.

return unless e.which is 229
@editor.body.on 'input', (e)=>
# windows 的 firefox 下 e.which == 0, webkit 浏览器 e.which 是 undefined
return unless e.which is 0 or typeof e.which is 'undefined'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

无论是不是ime输入,input事件的e.which都是0或者undefined吧?这一块代码是专门处理IME的逻辑

改用input事件的话应该就不能区分是否是IME输入了,所以应该有跟原来不同逻辑,同时兼容普通英文输入和IME输入

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant