Request for review 7156194: [macosx] Can't type non-ASCII characters into applets

Dmitry Cherepanov dmitry.cherepanov at
Mon Mar 26 07:56:04 PDT 2012

Anthony Petrov wrote:
> Hi Dmitry,
> Do we ever pass 'false' as the needsKeyTyped argument? I see only one 
> call to the handleKeyEvent() method at CPlatformView, and it always 
> passes true.
> Where is the CEmbeddedFrame.handleKeyEvent() called from?

Hi Anthony,

It's called from the Plugin code and it's 'false' for Firefox. In this 
case, the Plugin gets TextInput event even if it's US layout and we 
would get double KEY_TYPED events without suppressing one of these events.


> -- 
> best regards,
> Anthony
> On 03/26/12 17:54, Dmitry Cherepanov wrote:
>> Hello,
>> Here's a fix for 7156194 ([macosx] Can't type non-ASCII characters into
>> applets])
>> The fix implements CEmbeddedFrame.handleInputEvent
>> (NPCocoaEventTextInput handler) and sends KEY_TYPED event for each
>> character of the incoming string. Also, it introduces new
>> "needsKeyTyped" parameter to CEmbeddedFrame.handleKeyEvent method to
>> prevent getting double KEY_TYPED events.
>> Thanks,
>> Dmitry

More information about the macosx-port-dev mailing list