mshtml: Added IHTMLDocument2::onkeypress implementation.
This commit is contained in:
parent
8e71096fd1
commit
1c277a26bb
|
@ -1103,15 +1103,19 @@ static HRESULT WINAPI HTMLDocument_get_onkeydown(IHTMLDocument2 *iface, VARIANT
|
||||||
static HRESULT WINAPI HTMLDocument_put_onkeypress(IHTMLDocument2 *iface, VARIANT v)
|
static HRESULT WINAPI HTMLDocument_put_onkeypress(IHTMLDocument2 *iface, VARIANT v)
|
||||||
{
|
{
|
||||||
HTMLDocument *This = impl_from_IHTMLDocument2(iface);
|
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)
|
static HRESULT WINAPI HTMLDocument_get_onkeypress(IHTMLDocument2 *iface, VARIANT *p)
|
||||||
{
|
{
|
||||||
HTMLDocument *This = impl_from_IHTMLDocument2(iface);
|
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)
|
static HRESULT WINAPI HTMLDocument_put_onmouseup(IHTMLDocument2 *iface, VARIANT v)
|
||||||
|
|
|
@ -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 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 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 keyupW[] = {'k','e','y','u','p',0};
|
||||||
static const WCHAR onkeyupW[] = {'o','n','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},
|
EVENT_DEFAULTLISTENER},
|
||||||
{keydownW, onkeydownW, EVENTT_KEY, DISPID_EVMETH_ONKEYDOWN,
|
{keydownW, onkeydownW, EVENTT_KEY, DISPID_EVMETH_ONKEYDOWN,
|
||||||
EVENT_DEFAULTLISTENER|EVENT_BUBBLE},
|
EVENT_DEFAULTLISTENER|EVENT_BUBBLE},
|
||||||
|
{keypressW, onkeypressW, EVENTT_KEY, DISPID_EVMETH_ONKEYPRESS,
|
||||||
|
EVENT_DEFAULTLISTENER|EVENT_BUBBLE},
|
||||||
{keyupW, onkeyupW, EVENTT_KEY, DISPID_EVMETH_ONKEYUP,
|
{keyupW, onkeyupW, EVENTT_KEY, DISPID_EVMETH_ONKEYUP,
|
||||||
EVENT_DEFAULTLISTENER|EVENT_BUBBLE},
|
EVENT_DEFAULTLISTENER|EVENT_BUBBLE},
|
||||||
{loadW, onloadW, EVENTT_HTML, DISPID_EVMETH_ONLOAD,
|
{loadW, onloadW, EVENTT_HTML, DISPID_EVMETH_ONLOAD,
|
||||||
|
|
|
@ -28,6 +28,7 @@ typedef enum {
|
||||||
EVENTID_ERROR,
|
EVENTID_ERROR,
|
||||||
EVENTID_FOCUS,
|
EVENTID_FOCUS,
|
||||||
EVENTID_KEYDOWN,
|
EVENTID_KEYDOWN,
|
||||||
|
EVENTID_KEYPRESS,
|
||||||
EVENTID_KEYUP,
|
EVENTID_KEYUP,
|
||||||
EVENTID_LOAD,
|
EVENTID_LOAD,
|
||||||
EVENTID_MOUSEDOWN,
|
EVENTID_MOUSEDOWN,
|
||||||
|
|
Loading…
Reference in New Issue