IMEs on the Mac even further decouple keystrokes from input characters, and we're going to need explicit support for them (since they will probably have to live in the browser process in order to put up windows, etc.). There will probably be a level at which we'll have to write some glue to feed stuff to WebKit, but I think that handling the non-IME case now and the IME case later is the right approach.
--Amanda On Thu, Feb 19, 2009 at 3:01 PM, Avi Drissman <[email protected]> wrote: > I actually don't know how IME works. Apple/Carbon events? I know that under > Windows, there's an entire code path for it separate from this. > > This is actually a small (evolution-size) change from how it's done now. I > think we can change this for Western scripts now, and work out the details > from there. (Small pieces, etc.) > > Avi > > On Thu, Feb 19, 2009 at 2:56 PM, Mike Pinkerton <[email protected]> > wrote: >> >> keyDown and keyUp may post a single character, but how does IME enter >> into this? How are those sent to us? A single character at a time in a >> loop after the user confirms the entry? >> >> On Thu, Feb 19, 2009 at 2:46 PM, Avi Drissman <[email protected]> wrote: >> > Some research (where I found >> > http://wilshipley.com/blog/2005_08_01_archive.html ) indicates that >> > events >> > are basically one character. I think I'll cap it at, say, four, and >> > LOG(ERROR) if we get more than that. >> > >> > Sound good? >> > >> > Avi >> > >> > On Thu, Feb 19, 2009 at 2:37 PM, Avi Drissman <[email protected]> wrote: >> >> >> >> On Thu, Feb 19, 2009 at 2:35 PM, Darin Fisher <[email protected]> >> >> wrote: >> >>> >> >>> std::vector<unsigned short> text; >> >>> std::vector<unsigned short> unmodified_text; >> >>> std::vector<unsigned short> key_identifier; >> >> >> >> Their equivalents, yes. >> >> >> >>> >> >>> Is it really the case that those are unbounded in length? Or, is >> >>> there >> >>> some small max length that they can be? >> >> >> >> There's no theoretical limit on the Mac. I don't know what the >> >> practical >> >> limit is. >> >> >> >>> >> >>> Why isn't this a problem for Windows and Linux since they also have to >> >>> populate the PlatformKeyboardEvent's m_text, m_unmodifiedText, >> >>> and m_keyIdentifier fields. >> >> >> >> AFAICT, they guarantee one character per input event. The Mac doesn't. >> >> I >> >> can see doing a cap, though it doesn't thrill me. >> >> >> >> Avi >> > >> > >> > > >> > >> >> >> >> -- >> Mike Pinkerton >> Mac Weenie >> [email protected] > > > > > --~--~---------~--~----~------------~-------~--~----~ Chromium Developers mailing list: [email protected] View archives, change email options, or unsubscribe: http://groups.google.com/group/chromium-dev -~----------~----~----~----~------~----~------~--~---
