You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Can't use Input method with autocomplete-plus #210
When I use input method to enter some text in atom, input method will popup a window to let me choose which charactor to confirm. But after 100ms(autocomplete-plus default value), the autocomplete window popup, and it hide the input method window. So I just can't enter any word.
OS: Mac OS X 10.10.2
Atom: 0.176.0
Autocomplete-plus: 2.0.2
Input Method: Chinese Pinyin IME (Mac OS X preinstalled)
@MiincGu I'm not sure I've ever entered text using the technique you described (because I only ever write English). Would it be possible to either capture a video / animated gif of this, or do a screen sharing session with us so we can observe it?
I found out there's a compositionstart API for detecting IME input status.
The order that input event fired:
keydown
compositionstart
input
keyup
compositionend
change
Here is a demo, open console and try input something.
Though this order maybe different in real world, but compositionstart is always fired right after keydown. So maybe we can just detect if compositionstart is fired to determine if active autocomplete-plus.
I will go through autocomplete-plus's source code and try to submit a PR in this weekend.
If someone is working on it, please leave a message.
@chrisyip: please feel free to submit a PR to fix this. None of us have Google IME so it's a little hard for us to reproduce at this time. We do handle native IME correctly, and have a test confirming as such.
Activity
joefitzgerald commentedon Jan 29, 2015
@MiincGu I'm not sure I've ever entered text using the technique you described (because I only ever write English). Would it be possible to either capture a video / animated gif of this, or do a screen sharing session with us so we can observe it?
thethreeonee commentedon Jan 29, 2015
Hi,
Here's the video. Hope it can help.
https://www.youtube.com/watch?v=eAY4W-soaII&feature=youtube_gdata_player
park9140 commentedon Feb 2, 2015
I believe this is a duplicate of #200.
joefitzgerald commentedon Feb 2, 2015
Yes, it was opened while 200 was closed.
chrisyip commentedon Feb 4, 2015
I found out there's a
compositionstartAPI for detecting IME input status.The order that input event fired:
Here is a demo, open console and try input something.
Though this order maybe different in real world, but
compositionstartis always fired right afterkeydown. So maybe we can just detect ifcompositionstartis fired to determine if activeautocomplete-plus.I will go through
autocomplete-plus's source code and try to submit a PR in this weekend.If someone is working on it, please leave a message.
joefitzgerald commentedon Feb 4, 2015
@chrisyip: please feel free to submit a PR to fix this. None of us have Google IME so it's a little hard for us to reproduce at this time. We do handle native IME correctly, and have a test confirming as such.
Remove composition state