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
e9f0b4ff
Commit
e9f0b4ff
authored
Feb 06, 2018
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 06, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added key and char code IDOMKeyboardEvent getters implementation.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
fff36a78
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
6 deletions
+31
-6
htmlevent.c
dlls/mshtml/htmlevent.c
+31
-6
No files found.
dlls/mshtml/htmlevent.c
View file @
e9f0b4ff
...
...
@@ -1694,8 +1694,15 @@ static HRESULT WINAPI DOMKeyboardEvent_Invoke(IDOMKeyboardEvent *iface, DISPID d
static
HRESULT
WINAPI
DOMKeyboardEvent_get_key
(
IDOMKeyboardEvent
*
iface
,
BSTR
*
p
)
{
DOMEvent
*
This
=
impl_from_IDOMKeyboardEvent
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
nsAString
key_str
;
nsresult
nsres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
nsAString_Init
(
&
key_str
,
NULL
);
nsres
=
nsIDOMKeyEvent_GetKey
(
This
->
keyboard_event
,
&
key_str
);
return
return_nsstr
(
nsres
,
&
key_str
,
p
);
}
static
HRESULT
WINAPI
DOMKeyboardEvent_get_location
(
IDOMKeyboardEvent
*
iface
,
ULONG
*
p
)
...
...
@@ -1762,15 +1769,33 @@ static HRESULT WINAPI DOMKeyboardEvent_initKeyboardEvent(IDOMKeyboardEvent *ifac
static
HRESULT
WINAPI
DOMKeyboardEvent_get_keyCode
(
IDOMKeyboardEvent
*
iface
,
LONG
*
p
)
{
DOMEvent
*
This
=
impl_from_IDOMKeyboardEvent
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
UINT32
r
;
nsresult
nsres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
nsres
=
nsIDOMKeyEvent_GetKeyCode
(
This
->
keyboard_event
,
&
r
);
if
(
NS_FAILED
(
nsres
))
return
E_FAIL
;
*
p
=
r
;
return
S_OK
;
}
static
HRESULT
WINAPI
DOMKeyboardEvent_get_charCode
(
IDOMKeyboardEvent
*
iface
,
LONG
*
p
)
{
DOMEvent
*
This
=
impl_from_IDOMKeyboardEvent
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
UINT32
r
;
nsresult
nsres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
nsres
=
nsIDOMKeyEvent_GetKeyCode
(
This
->
keyboard_event
,
&
r
);
if
(
NS_FAILED
(
nsres
))
return
E_FAIL
;
*
p
=
r
;
return
S_OK
;
}
static
HRESULT
WINAPI
DOMKeyboardEvent_get_which
(
IDOMKeyboardEvent
*
iface
,
LONG
*
p
)
...
...
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