mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1187611 - (part 3) Handle ProxyAccessibles in mozAccessible canBeFocused r=tbsaunde
This commit is contained in:
parent
9e44300d4f
commit
fb72a45a11
@ -1236,8 +1236,13 @@ struct RoleDescrComparator
|
||||
|
||||
- (BOOL)canBeFocused
|
||||
{
|
||||
AccessibleWrap* accWrap = [self getGeckoAccessible];
|
||||
return accWrap && (accWrap->InteractiveState() & states::FOCUSABLE);
|
||||
if (AccessibleWrap* accWrap = [self getGeckoAccessible])
|
||||
return accWrap->InteractiveState() & states::FOCUSABLE;
|
||||
|
||||
if (ProxyAccessible* proxy = [self getProxyAccessible])
|
||||
return proxy->State() & states::FOCUSABLE;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
- (BOOL)focus
|
||||
|
Loading…
Reference in New Issue
Block a user