mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-11 01:57:00 +00:00
Bug 281101. Correct get_accFocus behavior when currently focused object is queryied is to return CHILDID_SELF. r=pkw, sr=bryner
This commit is contained in:
parent
e4dd792f02
commit
a076f1f82c
@ -385,13 +385,18 @@ STDMETHODIMP nsAccessibleWrap::get_accKeyboardShortcut(
|
||||
STDMETHODIMP nsAccessibleWrap::get_accFocus(
|
||||
/* [retval][out] */ VARIANT __RPC_FAR *pvarChild)
|
||||
{
|
||||
// Unless we manage a child's focus we return VT_EMPTY.
|
||||
// Since documents manage the child focus in Mozilla, we
|
||||
// only return a focused IAccessible in
|
||||
// nsDocAccessibleWrap::get_accFocus)()
|
||||
// We return CHILDID_SELF if we currently have focus
|
||||
|
||||
VariantInit(pvarChild);
|
||||
pvarChild->vt = VT_EMPTY;
|
||||
if (mDOMNode && mDOMNode == gLastFocusedNode) {
|
||||
pvarChild->vt = VT_I4;
|
||||
pvarChild->lVal = CHILDID_SELF;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user