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
>
>>

--~--~---------~--~----~------------~-------~--~----~
Chromium Developers mailing list: [email protected] 
View archives, change email options, or unsubscribe: 
    http://groups.google.com/group/chromium-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to