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

Scott Kovatch scott.kovatch at oracle.com
Mon Mar 26 10:28:12 PDT 2012


Dmitry,

It occurred to me this morning that we should also define a handleKeyEvent() with the previous signature that just calls the new method with the last parameter always 'true'. That way, deploy will still build until this JDK change makes its way to the master. I also don't think I'll be able to check in the corresponding deploy changes right away. We can remove it later, but for now just document it so that it's clear it's transitional.

-- Scott

On Mar 26, 2012, at 10:56 AM, Dmitry Cherepanov wrote:

> 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.
> 
> Thanks,
> Dmitry
> 
>> 
>> -- 
>> 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.
>>> 
>>> http://cr.openjdk.java.net/~dcherepanov/7156194/webrev.0/
>>> 
>>> Thanks,
>>> Dmitry
>>> 
> 



More information about the macosx-port-dev mailing list