Confirmed users, Bureaucrats and Sysops emeriti
1,680
edits
| 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 | 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. | ||
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 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. | ||