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
5896677d
Commit
5896677d
authored
Feb 15, 2018
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 15, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IDOMMouseEvent::buttons property implementation.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2e91bf32
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
htmlevent.c
dlls/mshtml/htmlevent.c
+11
-2
events.js
dlls/mshtml/tests/events.js
+1
-0
No files found.
dlls/mshtml/htmlevent.c
View file @
5896677d
...
...
@@ -1515,8 +1515,17 @@ static HRESULT WINAPI DOMMouseEvent_getModifierState(IDOMMouseEvent *iface, BSTR
static
HRESULT
WINAPI
DOMMouseEvent_get_buttons
(
IDOMMouseEvent
*
iface
,
USHORT
*
p
)
{
DOMEvent
*
This
=
impl_from_IDOMMouseEvent
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
UINT16
r
;
nsresult
nsres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
nsres
=
nsIDOMMouseEvent_GetButtons
(
This
->
mouse_event
,
&
r
);
if
(
NS_FAILED
(
nsres
))
return
E_FAIL
;
*
p
=
r
;
return
S_OK
;
}
static
HRESULT
WINAPI
DOMMouseEvent_get_fromElement
(
IDOMMouseEvent
*
iface
,
IHTMLElement
**
p
)
...
...
dlls/mshtml/tests/events.js
View file @
5896677d
...
...
@@ -642,6 +642,7 @@ function test_mouse_event() {
ok
(
e
.
shiftKey
===
false
,
"shiftKey = "
+
e
.
shiftKey
);
ok
(
e
.
metaKey
===
false
,
"metaKey = "
+
e
.
metaKey
);
ok
(
e
.
button
===
1
,
"button = "
+
e
.
button
);
ok
(
e
.
buttons
===
0
,
"buttons = "
+
e
.
buttons
);
e
.
initMouseEvent
(
"test"
,
false
,
false
,
window
,
9
,
8
,
7
,
6
,
5
,
true
,
true
,
true
,
true
,
127
,
document
);
ok
(
e
.
type
===
"test"
,
"type = "
+
e
.
type
);
...
...
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