mshtml: Added IDOMKeyboardEvent key state getters implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
e9f0b4ff61
commit
4947c70fe2
|
@ -1715,36 +1715,81 @@ static HRESULT WINAPI DOMKeyboardEvent_get_location(IDOMKeyboardEvent *iface, UL
|
||||||
static HRESULT WINAPI DOMKeyboardEvent_get_ctrlKey(IDOMKeyboardEvent *iface, VARIANT_BOOL *p)
|
static HRESULT WINAPI DOMKeyboardEvent_get_ctrlKey(IDOMKeyboardEvent *iface, VARIANT_BOOL *p)
|
||||||
{
|
{
|
||||||
DOMEvent *This = impl_from_IDOMKeyboardEvent(iface);
|
DOMEvent *This = impl_from_IDOMKeyboardEvent(iface);
|
||||||
FIXME("(%p)->(%p)\n", This, p);
|
cpp_bool r;
|
||||||
return E_NOTIMPL;
|
nsresult nsres;
|
||||||
|
|
||||||
|
TRACE("(%p)->(%p)\n", This, p);
|
||||||
|
|
||||||
|
nsres = nsIDOMKeyEvent_GetCtrlKey(This->keyboard_event, &r);
|
||||||
|
if(NS_FAILED(nsres))
|
||||||
|
return E_FAIL;
|
||||||
|
|
||||||
|
*p = variant_bool(r);
|
||||||
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI DOMKeyboardEvent_get_shiftKey(IDOMKeyboardEvent *iface, VARIANT_BOOL *p)
|
static HRESULT WINAPI DOMKeyboardEvent_get_shiftKey(IDOMKeyboardEvent *iface, VARIANT_BOOL *p)
|
||||||
{
|
{
|
||||||
DOMEvent *This = impl_from_IDOMKeyboardEvent(iface);
|
DOMEvent *This = impl_from_IDOMKeyboardEvent(iface);
|
||||||
FIXME("(%p)->(%p)\n", This, p);
|
cpp_bool r;
|
||||||
return E_NOTIMPL;
|
nsresult nsres;
|
||||||
|
|
||||||
|
TRACE("(%p)->(%p)\n", This, p);
|
||||||
|
|
||||||
|
nsres = nsIDOMKeyEvent_GetShiftKey(This->keyboard_event, &r);
|
||||||
|
if(NS_FAILED(nsres))
|
||||||
|
return E_FAIL;
|
||||||
|
|
||||||
|
*p = variant_bool(r);
|
||||||
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI DOMKeyboardEvent_get_altKey(IDOMKeyboardEvent *iface, VARIANT_BOOL *p)
|
static HRESULT WINAPI DOMKeyboardEvent_get_altKey(IDOMKeyboardEvent *iface, VARIANT_BOOL *p)
|
||||||
{
|
{
|
||||||
DOMEvent *This = impl_from_IDOMKeyboardEvent(iface);
|
DOMEvent *This = impl_from_IDOMKeyboardEvent(iface);
|
||||||
FIXME("(%p)->(%p)\n", This, p);
|
cpp_bool r;
|
||||||
return E_NOTIMPL;
|
nsresult nsres;
|
||||||
|
|
||||||
|
TRACE("(%p)->(%p)\n", This, p);
|
||||||
|
|
||||||
|
nsres = nsIDOMKeyEvent_GetAltKey(This->keyboard_event, &r);
|
||||||
|
if(NS_FAILED(nsres))
|
||||||
|
return E_FAIL;
|
||||||
|
|
||||||
|
*p = variant_bool(r);
|
||||||
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI DOMKeyboardEvent_get_metaKey(IDOMKeyboardEvent *iface, VARIANT_BOOL *p)
|
static HRESULT WINAPI DOMKeyboardEvent_get_metaKey(IDOMKeyboardEvent *iface, VARIANT_BOOL *p)
|
||||||
{
|
{
|
||||||
DOMEvent *This = impl_from_IDOMKeyboardEvent(iface);
|
DOMEvent *This = impl_from_IDOMKeyboardEvent(iface);
|
||||||
FIXME("(%p)->(%p)\n", This, p);
|
cpp_bool r;
|
||||||
return E_NOTIMPL;
|
nsresult nsres;
|
||||||
|
|
||||||
|
TRACE("(%p)->(%p)\n", This, p);
|
||||||
|
|
||||||
|
nsres = nsIDOMKeyEvent_GetMetaKey(This->keyboard_event, &r);
|
||||||
|
if(NS_FAILED(nsres))
|
||||||
|
return E_FAIL;
|
||||||
|
|
||||||
|
*p = variant_bool(r);
|
||||||
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI DOMKeyboardEvent_get_repeat(IDOMKeyboardEvent *iface, VARIANT_BOOL *p)
|
static HRESULT WINAPI DOMKeyboardEvent_get_repeat(IDOMKeyboardEvent *iface, VARIANT_BOOL *p)
|
||||||
{
|
{
|
||||||
DOMEvent *This = impl_from_IDOMKeyboardEvent(iface);
|
DOMEvent *This = impl_from_IDOMKeyboardEvent(iface);
|
||||||
FIXME("(%p)->(%p)\n", This, p);
|
cpp_bool r;
|
||||||
return E_NOTIMPL;
|
nsresult nsres;
|
||||||
|
|
||||||
|
TRACE("(%p)->(%p)\n", This, p);
|
||||||
|
|
||||||
|
nsres = nsIDOMKeyEvent_GetRepeat(This->keyboard_event, &r);
|
||||||
|
if(NS_FAILED(nsres))
|
||||||
|
return E_FAIL;
|
||||||
|
|
||||||
|
*p = variant_bool(r);
|
||||||
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI DOMKeyboardEvent_getModifierState(IDOMKeyboardEvent *iface, BSTR key,
|
static HRESULT WINAPI DOMKeyboardEvent_getModifierState(IDOMKeyboardEvent *iface, BSTR key,
|
||||||
|
|
Loading…
Reference in New Issue