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
1c277a26
Commit
1c277a26
authored
Apr 10, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 10, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLDocument2::onkeypress implementation.
parent
8e71096f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
4 deletions
+14
-4
htmldoc.c
dlls/mshtml/htmldoc.c
+8
-4
htmlevent.c
dlls/mshtml/htmlevent.c
+5
-0
htmlevent.h
dlls/mshtml/htmlevent.h
+1
-0
No files found.
dlls/mshtml/htmldoc.c
View file @
1c277a26
...
...
@@ -1103,15 +1103,19 @@ static HRESULT WINAPI HTMLDocument_get_onkeydown(IHTMLDocument2 *iface, VARIANT
static
HRESULT
WINAPI
HTMLDocument_put_onkeypress
(
IHTMLDocument2
*
iface
,
VARIANT
v
)
{
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_variant
(
&
v
));
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_variant
(
&
v
));
return
set_doc_event
(
This
,
EVENTID_KEYPRESS
,
&
v
);
}
static
HRESULT
WINAPI
HTMLDocument_get_onkeypress
(
IHTMLDocument2
*
iface
,
VARIANT
*
p
)
{
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
get_doc_event
(
This
,
EVENTID_KEYPRESS
,
p
);
}
static
HRESULT
WINAPI
HTMLDocument_put_onmouseup
(
IHTMLDocument2
*
iface
,
VARIANT
v
)
...
...
dlls/mshtml/htmlevent.c
View file @
1c277a26
...
...
@@ -77,6 +77,9 @@ static const WCHAR onfocusW[] = {'o','n','f','o','c','u','s',0};
static
const
WCHAR
keydownW
[]
=
{
'k'
,
'e'
,
'y'
,
'd'
,
'o'
,
'w'
,
'n'
,
0
};
static
const
WCHAR
onkeydownW
[]
=
{
'o'
,
'n'
,
'k'
,
'e'
,
'y'
,
'd'
,
'o'
,
'w'
,
'n'
,
0
};
static
const
WCHAR
keypressW
[]
=
{
'k'
,
'e'
,
'y'
,
'p'
,
'r'
,
'e'
,
's'
,
's'
,
0
};
static
const
WCHAR
onkeypressW
[]
=
{
'o'
,
'n'
,
'k'
,
'e'
,
'y'
,
'p'
,
'r'
,
'e'
,
's'
,
's'
,
0
};
static
const
WCHAR
keyupW
[]
=
{
'k'
,
'e'
,
'y'
,
'u'
,
'p'
,
0
};
static
const
WCHAR
onkeyupW
[]
=
{
'o'
,
'n'
,
'k'
,
'e'
,
'y'
,
'u'
,
'p'
,
0
};
...
...
@@ -169,6 +172,8 @@ static const event_info_t event_info[] = {
EVENT_DEFAULTLISTENER
},
{
keydownW
,
onkeydownW
,
EVENTT_KEY
,
DISPID_EVMETH_ONKEYDOWN
,
EVENT_DEFAULTLISTENER
|
EVENT_BUBBLE
},
{
keypressW
,
onkeypressW
,
EVENTT_KEY
,
DISPID_EVMETH_ONKEYPRESS
,
EVENT_DEFAULTLISTENER
|
EVENT_BUBBLE
},
{
keyupW
,
onkeyupW
,
EVENTT_KEY
,
DISPID_EVMETH_ONKEYUP
,
EVENT_DEFAULTLISTENER
|
EVENT_BUBBLE
},
{
loadW
,
onloadW
,
EVENTT_HTML
,
DISPID_EVMETH_ONLOAD
,
...
...
dlls/mshtml/htmlevent.h
View file @
1c277a26
...
...
@@ -28,6 +28,7 @@ typedef enum {
EVENTID_ERROR
,
EVENTID_FOCUS
,
EVENTID_KEYDOWN
,
EVENTID_KEYPRESS
,
EVENTID_KEYUP
,
EVENTID_LOAD
,
EVENTID_MOUSEDOWN
,
...
...
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