NPAPI:CocoaEventModel: Difference between revisions

Jump to navigation Jump to search
No edit summary
Line 236: Line 236:
When a plug-in wants a key event to be passed to the input method, it must return 0 from NPP_HandleEvent when the event is NPCocoaEventKeyDown. This indicates to the browser that the input manager should handle the event.
When a plug-in wants a key event to be passed to the input method, it must return 0 from NPP_HandleEvent when the event is NPCocoaEventKeyDown. This indicates to the browser that the input manager should handle the event.


The input method may in response to an event open up an out of line input window where the complex tex can be input. When the user confirms the text and dismisses the window, an NPCocoaEventTextInput event is sent with the relevant unicode string.
The input method may in response to an event open up an out of line input window where the complex text can be input. When the user confirms the text and dismisses the window, an NPCocoaEventTextInput event is sent with the relevant unicode string.


== Notes ==
== Notes ==
Confirmed users, Bureaucrats and Sysops emeriti
1,680

edits

Navigation menu