mshtml: Added IHTMLKeyboardEvent::location property implementation.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2018-02-07 16:25:51 +01:00 committed by Alexandre Julliard
parent 0de689f415
commit d3cd6a3691
3 changed files with 13 additions and 2 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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();