Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
255894c1
Commit
255894c1
authored
Aug 20, 2014
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 20, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Override default onsubmit action with our submit implementation.
parent
b2962fb8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
htmlevent.c
dlls/mshtml/htmlevent.c
+1
-1
htmlform.c
dlls/mshtml/htmlform.c
+13
-1
No files found.
dlls/mshtml/htmlevent.c
View file @
255894c1
...
...
@@ -218,7 +218,7 @@ static const event_info_t event_info[] = {
{
selectstartW
,
onselectstartW
,
EVENTT_MOUSE
,
DISPID_EVMETH_ONSELECTSTART
,
EVENT_CANCELABLE
},
{
submitW
,
onsubmitW
,
EVENTT_HTML
,
DISPID_EVMETH_ONSUBMIT
,
EVENT_DEFAULTLISTENER
|
EVENT_BUBBLE
|
EVENT_CANCELABLE
}
EVENT_DEFAULTLISTENER
|
EVENT_BUBBLE
|
EVENT_CANCELABLE
|
EVENT_HASDEFAULTHANDLERS
}
};
eventid_t
str_to_eid
(
LPCWSTR
str
)
...
...
dlls/mshtml/htmlform.c
View file @
255894c1
...
...
@@ -714,12 +714,24 @@ static HRESULT HTMLFormElement_invoke(HTMLDOMNode *iface,
return
S_OK
;
}
static
HRESULT
HTMLFormElement_handle_event
(
HTMLDOMNode
*
iface
,
eventid_t
eid
,
nsIDOMEvent
*
event
,
BOOL
*
prevent_default
)
{
HTMLFormElement
*
This
=
impl_from_HTMLDOMNode
(
iface
);
if
(
eid
==
EVENTID_SUBMIT
)
{
*
prevent_default
=
TRUE
;
return
IHTMLFormElement_submit
(
&
This
->
IHTMLFormElement_iface
);
}
return
HTMLElement_handle_event
(
&
This
->
element
.
node
,
eid
,
event
,
prevent_default
);
}
static
const
NodeImplVtbl
HTMLFormElementImplVtbl
=
{
HTMLFormElement_QI
,
HTMLElement_destructor
,
HTMLElement_cpc
,
HTMLElement_clone
,
HTMLElement_handle_event
,
HTML
Form
Element_handle_event
,
HTMLElement_get_attr_col
,
NULL
,
NULL
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment