mshtml: Don't use fire_event to dispatch help event.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
9130720e85
commit
2a771127cd
|
@ -5188,10 +5188,17 @@ HRESULT HTMLElement_handle_event(HTMLDOMNode *iface, DWORD eid, nsIDOMEvent *eve
|
||||||
|
|
||||||
nsIDOMKeyEvent_GetKeyCode(key_event, &code);
|
nsIDOMKeyEvent_GetKeyCode(key_event, &code);
|
||||||
|
|
||||||
switch(code) {
|
if(code == VK_F1 /* DOM_VK_F1 */) {
|
||||||
case VK_F1: /* DOM_VK_F1 */
|
DOMEvent *help_event;
|
||||||
|
HRESULT hres;
|
||||||
|
|
||||||
TRACE("F1 pressed\n");
|
TRACE("F1 pressed\n");
|
||||||
fire_event(This->node.doc, EVENTID_HELP, TRUE, &This->node.event_target, NULL);
|
|
||||||
|
hres = create_document_event(This->node.doc, EVENTID_HELP, &help_event);
|
||||||
|
if(SUCCEEDED(hres)) {
|
||||||
|
fire_event_obj(&This->node.event_target, help_event);
|
||||||
|
IDOMEvent_Release(&help_event->IDOMEvent_iface);
|
||||||
|
}
|
||||||
*prevent_default = TRUE;
|
*prevent_default = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue