Skip to content

fix(connections): let Tab leave the AI rules text field via the key view loop (#1490)#1517

Merged
datlechin merged 2 commits into
mainfrom
a11y/airules-tab-exit
May 30, 2026
Merged

fix(connections): let Tab leave the AI rules text field via the key view loop (#1490)#1517
datlechin merged 2 commits into
mainfrom
a11y/airules-tab-exit

Conversation

@datlechin
Copy link
Copy Markdown
Member

Part of #1490 (keyboard, focus, accessibility). Connection form.

The AI rules field is a plain (non-code) NSTextView, but it trapped Tab as an inserted tab character, so keyboard users could not move past it. This adds textView(_:doCommandBy:) to the delegate to route insertTab: / insertBacktab: to window.selectNextKeyView / selectPreviousKeyView, the standard AppKit mechanism for a text field that should participate in the key view loop.

Native delegate hook, no subclass. Lint clean, style gate clean.

@datlechin datlechin merged commit d9f49d4 into main May 30, 2026
4 checks passed
@datlechin datlechin deleted the a11y/airules-tab-exit branch May 30, 2026 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant