Skip to content
Snippets Groups Projects
Commit d3cd6a36 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard
Browse files

mshtml: Added IHTMLKeyboardEvent::location property implementation.

parent 0de689f4
No related branches found
No related tags found
No related merge requests found
......@@ -209,6 +209,7 @@ HRESULT get_class_typeinfo(const CLSID *clsid, ITypeInfo **typeinfo)
CASE_VT(VT_I2, INT16, V_I2); \
CASE_VT(VT_UI2, UINT16, V_UI2); \
CASE_VT(VT_I4, INT32, V_I4); \
CASE_VT(VT_UI4, UINT32, V_UI4); \
CASE_VT(VT_R4, float, V_R4); \
CASE_VT(VT_BSTR, BSTR, V_BSTR); \
CASE_VT(VT_BOOL, VARIANT_BOOL, V_BOOL)
......
......@@ -1675,8 +1675,17 @@ static HRESULT WINAPI DOMKeyboardEvent_get_key(IDOMKeyboardEvent *iface, BSTR *p
static HRESULT WINAPI DOMKeyboardEvent_get_location(IDOMKeyboardEvent *iface, ULONG *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_GetLocation(This->keyboard_event, &r);
if(NS_FAILED(nsres))
return E_FAIL;
*p = r;
return S_OK;
}
static HRESULT WINAPI DOMKeyboardEvent_get_ctrlKey(IDOMKeyboardEvent *iface, VARIANT_BOOL *p)
......
......@@ -698,6 +698,7 @@ function test_keyboard_event() {
ok(e.altKey === false, "altKey = " + e.altKey);
ok(e.shiftKey === false, "shiftKey = " + e.shiftKey);
ok(e.metaKey === false, "metaKey = " + e.metaKey);
ok(e.location === 0, "location = " + e.location);
ok(e.detail === 0, "detail = " + e.detail);
next_test();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment