mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1187611 - (part 1) Handle ProxyAccessibles in mozAccessible focus r=tbsaunde
This commit is contained in:
parent
e43e59977d
commit
adcddd62d0
@ -1242,11 +1242,13 @@ struct RoleDescrComparator
|
||||
|
||||
- (BOOL)focus
|
||||
{
|
||||
AccessibleWrap* accWrap = [self getGeckoAccessible];
|
||||
if (!accWrap)
|
||||
if (AccessibleWrap* accWrap = [self getGeckoAccessible])
|
||||
accWrap->TakeFocus();
|
||||
else if (ProxyAccessible* proxy = [self getProxyAccessible])
|
||||
proxy->TakeFocus();
|
||||
else
|
||||
return NO;
|
||||
|
||||
accWrap->TakeFocus();
|
||||
return YES;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user