[Webkit-unassigned] [Bug 40608] [chromium]Refactor input method related APIs.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jun 15 17:04:19 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=40608





--- Comment #13 from James Su <suzhe at chromium.org>  2010-06-15 17:04:17 PST ---
(In reply to comment #11)
> (In reply to comment #10)
> > Returning boolean should be enough. This method should only return false when the input method has some composition text but the webkit can't accept it by any reason, then the only thing can be done is to cancel the input method's composition text.
> 
> Oh, I remembered why I wanted to return an enum.  Ojan suggested that we try to cancel each letter, rather than the whole composition if the site calls preventDefault().  I'm not sure this is going to work on all platforms, so maybe there should be different return types for canceling the whole composition vs canceling a single character (in which case on OSX, we'll need to reset the composition state in the browser)?

I don't think it's possible to cancel individual letter of a composition session, because you can't know if the internal state of the input method will be changed by a key event, even the composition text stays unchanged. In another word, there is no way for us to let the input method revert to a previous middle state. The only thing we can do is to cancel the ongoing composition session in whole which will reset the input method to its initial state.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list