Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting UniChar for keyDown in a Safari Plugin



Hi there

I am writing a internet plug-in. I have to deal with the keyChars
generated on keyboard input. I have registerd apple event handler for
updateActiveInputArea to handle inputs like Japanese/Chinese. To
handle other Unicode inputs I have this application event handler on
kEventTextInputUnicodeForKeyEvent. But this app-event handler is NOT
called when my plugin is in Safari, whereas in Firefox this handler
gets called correctly.
What is the recommended way to get the unichar for keydown when my
plugin is loaded in Safari?

In the plugin message I am getting EventRecord only. I know that I can
use UCKeyTranslate / KeyTranslate APIs to get the equivalent unichars.
The actual problem I ran in to was when I am in French inputs to
insert 'ô' / 'î' I would press '[' followed by 'i' / 'o' key in a US
keyboard. Here the first glyph would come in updateActiveInputArea
event handler saying composition mode has started and then upon
pressing i / o updateActiveInputArea event is not sent to say end of
composition mode. Is it the expected behavior?

Regards
Sam
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.