Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
a86a4e65
Commit
a86a4e65
authored
Apr 04, 2016
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 05, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added support for focusin event.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1dc502c5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
2 deletions
+24
-2
htmlelem.c
dlls/mshtml/htmlelem.c
+1
-1
htmlevent.c
dlls/mshtml/htmlevent.c
+13
-1
nsevents.c
dlls/mshtml/nsevents.c
+10
-0
No files found.
dlls/mshtml/htmlelem.c
View file @
a86a4e65
...
...
@@ -3858,7 +3858,7 @@ static HRESULT WINAPI HTMLElement4_put_onfocusin(IHTMLElement4 *iface, VARIANT v
{
HTMLElement
*
This
=
impl_from_IHTMLElement4
(
iface
);
FIXME
(
"(%p)->(%s) semi-stub
\n
"
,
This
,
debugstr_variant
(
&
v
));
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_variant
(
&
v
));
return
set_node_event
(
&
This
->
node
,
EVENTID_FOCUSIN
,
&
v
);
}
...
...
dlls/mshtml/htmlevent.c
View file @
a86a4e65
...
...
@@ -1328,7 +1328,19 @@ HRESULT ensure_doc_nsevent_handler(HTMLDocumentNode *doc, eventid_t eid)
TRACE
(
"%s
\n
"
,
debugstr_w
(
event_info
[
eid
].
name
));
if
(
!
doc
->
nsdoc
||
doc
->
event_vector
[
eid
]
||
!
(
event_info
[
eid
].
flags
&
(
EVENT_DEFAULTLISTENER
|
EVENT_BIND_TO_BODY
)))
if
(
!
doc
->
nsdoc
)
return
S_OK
;
switch
(
eid
)
{
case
EVENTID_FOCUSIN
:
doc
->
event_vector
[
eid
]
=
TRUE
;
eid
=
EVENTID_FOCUS
;
break
;
default:
break
;
}
if
(
doc
->
event_vector
[
eid
]
||
!
(
event_info
[
eid
].
flags
&
(
EVENT_DEFAULTLISTENER
|
EVENT_BIND_TO_BODY
)))
return
S_OK
;
if
(
event_info
[
eid
].
flags
&
EVENT_BIND_TO_BODY
)
{
...
...
dlls/mshtml/nsevents.c
View file @
a86a4e65
...
...
@@ -337,6 +337,16 @@ static nsresult NSAPI handle_htmlevent(nsIDOMEventListener *iface, nsIDOMEvent *
if
(
FAILED
(
hres
))
return
NS_OK
;
/* If we fine need for more special cases here, we may consider handling it in a more generic way. */
switch
(
eid
)
{
case
EVENTID_FOCUS
:
if
(
doc
->
event_vector
[
EVENTID_FOCUSIN
])
fire_event
(
doc
,
EVENTID_FOCUSIN
,
TRUE
,
node
,
NULL
,
NULL
);
break
;
default:
break
;
}
fire_event
(
doc
,
eid
,
TRUE
,
node
,
event
,
NULL
);
node_release
(
node
);
...
...
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