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:
Jacek Caban 2017-10-20 15:10:04 +02:00 committed by Alexandre Julliard
parent 9130720e85
commit 2a771127cd
1 changed files with 10 additions and 3 deletions

View File

@ -5188,10 +5188,17 @@ HRESULT HTMLElement_handle_event(HTMLDOMNode *iface, DWORD eid, nsIDOMEvent *eve
nsIDOMKeyEvent_GetKeyCode(key_event, &code);
switch(code) {
case VK_F1: /* DOM_VK_F1 */
if(code == VK_F1 /* DOM_VK_F1 */) {
DOMEvent *help_event;
HRESULT hres;
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;
}