NPAPI:CocoaEventModel: Difference between revisions

Jump to navigation Jump to search
Line 207: Line 207:
== Text Input ==
== Text Input ==


When a plug-in wants a key event to be passed to the input method, it must return 2 (kNPEventStartIME) from NPP_HandleEvent when the event is NPCocoaEventKeyDown. This indicates to the browser that the input manager should handle the event.
Plugin-ins can return 2 (kNPEventStartIME) from NPP_HandleEvent for NPCocoaEventKeyDown events when they want the browser to have an input method process the event.


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.
The input method may open an out-of-line input window where complex text can be composed. 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