Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Can't use Input method with autocomplete-plus #210

Closed
thethreeonee opened this issue Jan 29, 2015 · 6 comments
Closed

Can't use Input method with autocomplete-plus #210

thethreeonee opened this issue Jan 29, 2015 · 6 comments
Labels

Comments

@thethreeonee
Copy link

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)
@joefitzgerald
Copy link
Contributor

@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
Copy link
Author

Hi,
Here's the video. Hope it can help.

https://www.youtube.com/watch?v=eAY4W-soaII&feature=youtube_gdata_player

@joefitzgerald joefitzgerald modified the milestone: 2.2 Jan 31, 2015
@park9140
Copy link
Contributor

park9140 commented Feb 2, 2015

I believe this is a duplicate of #200.

@joefitzgerald
Copy link
Contributor

Yes, it was opened while 200 was closed.

@chrisyip
Copy link

chrisyip commented Feb 4, 2015

I found out there's a compositionstart API for detecting IME input status.

The order that input event fired:

  1. keydown
  2. compositionstart
  3. input
  4. keyup
  5. compositionend
  6. 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.

@joefitzgerald
Copy link
Contributor

@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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants