NPAPI:CocoaCompositionClarification: Difference between revisions

no edit summary
No edit summary
Line 5: Line 5:
= Contributors =
= Contributors =


* Last modified: November 28, 2010
* Last modified: November 29, 2010
* Authors: Josh Aas (Mozilla)
* Authors: Josh Aas (Mozilla)
* Contributors: Stuart Morgan (Google)
* Contributors: Stuart Morgan (Google)
Line 11: Line 11:
= Overview =
= Overview =


This proposal modifies the existing Cocoa NPAPI specification ([[NPAPI:CocoaEventModel]]). Plugins need a way to know when complex text composition (started by returning 'kNPEventStartIME' for an 'NPCocoaEventKeyDown' event) has been canceled by the user or the browser. Plugins receive key events during composition and without this extension they cannot tell in-composition key events from post-composition key events unless a composition completes and results in an 'NPCocoaEventTextInput' event.
This proposal modifies the existing Cocoa NPAPI specification ([[NPAPI:CocoaEventModel]]). Plugins receive key events during complex text composition and they need a reliable way to know whether or not key events are intended for use in the composition. Since composition can be canceled by the user or the browser plugins cannot assume that composition is in progress until they receive an 'NPCocoaEventTextInput' event.


= Specification Change =
= Specification Change =
Confirmed users, Bureaucrats and Sysops emeriti
1,680

edits