Request for review 7156194: [macosx] Can't type non-ASCII characters into applets
dmitry.cherepanov at oracle.com
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?
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,
> On 03/26/12 17:54, Dmitry Cherepanov wrote:
>> Here's a fix for 7156194 ([macosx] Can't type non-ASCII characters into
>> 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.
More information about the macosx-port-dev