Commit e9f0b4ff authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Added key and char code IDOMKeyboardEvent getters implementation.

parent fff36a78
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment