patches: remove accessibilityChildren override (C-n/C-p line nav regression fix)

This commit is contained in:
2026-02-27 10:47:54 +01:00
parent 5f08e0a315
commit c138bdc6d5

View File

@@ -1,13 +1,13 @@
From ee45648ef5ba61c7c9b5937741666b59b172a291 Mon Sep 17 00:00:00 2001
From 7d2c92820f1f7b716f5123e6d371eb051bd99eaa Mon Sep 17 00:00:00 2001
From: Martin Sukany <martin@sukany.cz>
Date: Fri, 27 Feb 2026 10:42:28 +0100
Date: Fri, 27 Feb 2026 10:47:48 +0100
Subject: [PATCH] ns: implement VoiceOver accessibility (AXBoundsForRange, line
nav, completions, interactive spans)
---
src/nsterm.h | 109 +++
src/nsterm.m | 2651 +++++++++++++++++++++++++++++++++++++++++++++++---
2 files changed, 2610 insertions(+), 150 deletions(-)
src/nsterm.m | 2646 +++++++++++++++++++++++++++++++++++++++++++++++---
2 files changed, 2605 insertions(+), 150 deletions(-)
diff --git a/src/nsterm.h b/src/nsterm.h
index 7c1ee4c..6c95673 100644
@@ -144,7 +144,7 @@ index 7c1ee4c..6c95673 100644
diff --git a/src/nsterm.m b/src/nsterm.m
index 932d209..3c3c14a 100644
index 932d209..603688d 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -46,6 +46,7 @@ Updated by Christian Limpach (chris@nice.ch)
@@ -205,7 +205,7 @@ index 932d209..3c3c14a 100644
ns_focus (f, NULL, 0);
NSGraphicsContext *ctx = [NSGraphicsContext currentContext];
@@ -6849,220 +6886,2211 @@ - (BOOL)fulfillService: (NSString *)name withArg: (NSString *)arg
@@ -6849,220 +6886,2206 @@ - (BOOL)fulfillService: (NSString *)name withArg: (NSString *)arg
/* ==========================================================================
@@ -1093,11 +1093,6 @@ index 932d209..3c3c14a 100644
+ return cachedInteractiveSpans;
+}
+
+- (NSArray *) accessibilityChildren
+{
+ return [self accessibilityChildrenInNavigationOrder];
+}
+
+@end
+
+
@@ -2567,7 +2562,7 @@ index 932d209..3c3c14a 100644
static NSMutableArray *nsEvArray;
unsigned int flags = [theEvent modifierFlags];
@@ -8237,6 +10265,28 @@ - (void)windowDidBecomeKey /* for direct calls */
@@ -8237,6 +10260,28 @@ - (void)windowDidBecomeKey /* for direct calls */
XSETFRAME (event.frame_or_window, emacsframe);
kbd_buffer_store_event (&event);
ns_send_appdefined (-1); // Kick main loop
@@ -2596,7 +2591,7 @@ index 932d209..3c3c14a 100644
}
@@ -9474,6 +11524,307 @@ - (int) fullscreenState
@@ -9474,6 +11519,307 @@ - (int) fullscreenState
return fs_state;
}