Files
kitty/glfw
Sébastien MORAND 0bf307c95f macOS: Implement dictation support via accessibility and NSTextInputClient
This commit enables macOS dictation (triggered by pressing Fn twice) to work
in kitty by implementing the necessary accessibility methods.

The key fix is changing `selectedRange` to return `NSMakeRange(0, 0)` instead
of `kEmptyRange` (NSNotFound, 0). When selectedRange returns NSNotFound, macOS
dictation cannot determine where to insert text and fails silently.

Additional accessibility methods implemented:
- accessibilitySelectedTextRange: Returns cursor position for dictation
- accessibilityNumberOfCharacters: Returns 0 (terminal has no fixed buffer)
- accessibilityInsertionPointLineNumber: Returns 0
- accessibilityValue: Returns empty string
- setAccessibilityValue: Routes dictated text to keyboard input

This fix is inspired by the similar fix in Emacs v30 which restored dictation
by implementing selectedRange properly after migrating to NSTextInputClient.

Fixes: https://github.com/kovidgoyal/kitty/issues/3732
2026-01-20 10:35:54 +01:00
..
...
2025-12-03 22:57:14 +05:30
2025-08-16 07:38:54 +05:30
2025-08-16 07:38:54 +05:30
2025-03-12 09:26:36 +05:30
...
2025-11-22 20:03:01 +05:30
2026-01-11 11:02:14 +05:30
2025-05-13 15:29:37 +05:30
2025-08-16 07:38:54 +05:30
2025-09-16 08:18:42 +05:30
2025-08-16 07:38:54 +05:30
2026-01-15 19:26:27 +05:30
2025-08-16 07:38:54 +05:30
2026-01-15 19:26:27 +05:30