Called by MSHTML to translate a key combination entered by a user into an appropriate command.
HRESULT TranslateAccelerator( DISPID inEvtDispId, IHTMLEventObj *pIEventObj );
- [in] A DISPID that specifies the event.
- [in] A pointer to an IHTMLEventObj interface that specifies the event.
Returns S_OK to indicate that the event has been completely handled, and that no further processing should take place, either by other edit designers or by the MSHTML Editor. Returns S_FALSE to indicate that other edit designers and the MSHTML Editor should perform their processing for this event.
MSHTML calls this method to translate a user's keyboard input in the editor's environment. In a custom editor implementation, this method enables you to customize the behavior of keyboard shortcuts that are used with the editor.
The DISPID parameter provides the most efficient way for an IHTMLEditDesigner method to determine what type of event triggered the method call. The DISPID_HTMLELEMENTEVENTS2 identifiers are defined in Mshtmdid.h.