Add IME detection
Merge pull request #11 from foo9/ime

Add IME detection