Support inline input (pre-edit,surrounding-text)
Merge pull request #1637 from luyikei/fix-im-problem

Support inline input (pre-edit,surrounding-text) when using input-method, Fix #1071