aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRudolf Adamkovič2025-03-17 02:25:21 +0100
committerAlan Third2025-07-31 22:14:39 +0100
commit6e1054a40bf6df1429a2b16fdd0d7652dae4d537 (patch)
tree0975cfd2ec27afdf0a3f151264526e9925608aa1 /src
parenta6e0bb92bb0c114fc8d57864455330d04eac064e (diff)
downloademacs-6e1054a40bf6df1429a2b16fdd0d7652dae4d537.tar.gz
emacs-6e1054a40bf6df1429a2b16fdd0d7652dae4d537.zip
NS: Correct the accessibility role of Emacs windows (bug#77062)
Make the accessibility role of Emacs windows to be "standard window" (AXWindow) instead of "text field" (AXTextField). This matches other applications on NS, as can be verified with any accessibility inspector. All widely used NS ports, such as Emacs Plus, have this patch already applied. As for practical impact, this change makes Emacs, for example, work with tiling window managers, such as Yabai, where many users report problems with Emacs specifically, and are instructed to simply avoid the official NS port of GNU Emacs due to this problem. * src/nsterm.m: ([EmacsWindow accessibilityAttributeValue:]): Make the accessibility role of Emacs windows to be "standard window" (AXWindow) instead of "text field" (AXTextField).
Diffstat (limited to 'src')
-rw-r--r--src/nsterm.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nsterm.m b/src/nsterm.m
index 30a35bdd5b2..b006b4d5dd0 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -9830,7 +9830,7 @@ nswindow_orderedIndex_sort (id w1, id w2, void *c)
9830 NSTRACE ("[EmacsWindow accessibilityAttributeValue:]"); 9830 NSTRACE ("[EmacsWindow accessibilityAttributeValue:]");
9831 9831
9832 if ([attribute isEqualToString:NSAccessibilityRoleAttribute]) 9832 if ([attribute isEqualToString:NSAccessibilityRoleAttribute])
9833 return NSAccessibilityTextFieldRole; 9833 return NSAccessibilityWindowRole;
9834 9834
9835 if ([attribute isEqualToString:NSAccessibilitySelectedTextAttribute] 9835 if ([attribute isEqualToString:NSAccessibilitySelectedTextAttribute]
9836 && curbuf && ! NILP (BVAR (curbuf, mark_active))) 9836 && curbuf && ! NILP (BVAR (curbuf, mark_active)))