mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-24 19:03:29 +00:00
Set accessibility subroles for child frame (bug#31324)
; Depends on patch in bug#31440. * src/nsterm.m (x_set_parent_frame): Set subrole depending on whether frame is a child or not.
This commit is contained in:
parent
de6a876373
commit
defd53a56c
16
src/nsterm.m
16
src/nsterm.m
@ -1962,7 +1962,15 @@ so some key presses (TAB) are swallowed by the system. */
|
||||
child = [FRAME_NS_VIEW (f) window];
|
||||
|
||||
if ([child parentWindow] != nil)
|
||||
[[child parentWindow] removeChildWindow:child];
|
||||
{
|
||||
[[child parentWindow] removeChildWindow:child];
|
||||
#if defined (NS_IMPL_COCOA) && MAC_OS_X_VERSION_MAX_ALLOWED >= 101000
|
||||
#if MAC_OS_X_VERSION_MIN_REQUIRED < 101000
|
||||
if ([child respondsToSelector:@selector(setAccessibilitySubrole:)]
|
||||
#endif
|
||||
[child setAccessibilitySubrole:NSAccessibilityStandardWindowSubrole];
|
||||
#endif
|
||||
}
|
||||
|
||||
if (!NILP (new_value))
|
||||
{
|
||||
@ -1970,6 +1978,12 @@ so some key presses (TAB) are swallowed by the system. */
|
||||
|
||||
[parent addChildWindow: child
|
||||
ordered: NSWindowAbove];
|
||||
#if defined (NS_IMPL_COCOA) && MAC_OS_X_VERSION_MAX_ALLOWED >= 101000
|
||||
#if MAC_OS_X_VERSION_MIN_REQUIRED < 101000
|
||||
if ([child respondsToSelector:@selector(setAccessibilitySubrole:)]
|
||||
#endif
|
||||
[child setAccessibilitySubrole:NSAccessibilityFloatingWindowSubrole];
|
||||
#endif
|
||||
}
|
||||
|
||||
unblock_input ();
|
||||
|
Loading…
Reference in New Issue
Block a user