NPAPI:AdvancedKeyHandling: Difference between revisions

Jump to navigation Jump to search
Line 444: Line 444:
If a plugin receives an event that causes it to attempt to give up focus, the plugin should simply call NPN_GiveUpFocus and not pass on the event since attempting to give up focus is essentially handling the event.
If a plugin receives an event that causes it to attempt to give up focus, the plugin should simply call NPN_GiveUpFocus and not pass on the event since attempting to give up focus is essentially handling the event.


Focus events will not be passed to plugins via <tt>NPP_HandleEvent<tt> when AKH is enabled. Per platform, this means:
Focus events will not be passed to plugins via <tt>NPP_HandleEvent</tt> when AKH is enabled. Per platform, this means:


* Mac OS X (windowless): <tt>NPEventType_GetFocusEvent</tt> and <tt>NPEventType_LoseFocusEvent</tt> will not be sent.
* Mac OS X (windowless): <tt>NPEventType_GetFocusEvent</tt> and <tt>NPEventType_LoseFocusEvent</tt> will not be sent.
Confirmed users, Bureaucrats and Sysops emeriti
1,680

edits

Navigation menu