0

How would I go about checking whether the user is using an IME to input text? For instance, if you look at Google Docs, they seem to use some kind of intermediate IFrame to capture it before putting it in the actual document <div>s.

1 Answer 1

1

The W3C DOM Level 3 specifies the event compositionstart and friends for detecting IME input. For browsers that don't support those events, some hacking around is required.

The Closure library has an example for this: http://closure-library.googlecode.com/svn/docs/closure_goog_events_imehandler.js.source.html

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.