Skip to content

[MiniBrowser] [macOS] Users should be able to focus form controls with tab key navigation#50689

Merged
webkit-commit-queue merged 1 commit intoWebKit:mainfrom
aprotyas:eng/298806
Sep 13, 2025
Merged

[MiniBrowser] [macOS] Users should be able to focus form controls with tab key navigation#50689
webkit-commit-queue merged 1 commit intoWebKit:mainfrom
aprotyas:eng/298806

Conversation

@aprotyas
Copy link
Member

@aprotyas aprotyas commented Sep 13, 2025

a2cf34f

[MiniBrowser] [macOS] Users should be able to focus form controls with tab key navigation
https://bugs.webkit.org/show_bug.cgi?id=298806
rdar://160504199

Reviewed by Aditya Keerthi.

This patch introduces a toggle in MiniBrowser that plumbs into
`WKPreferences.tabFocusesLinks`, allowing users to focus links and form
controls through tab key navigation, akin to Safari's "Press Tab to
highlight each item on a webpage" preference.

* Tools/MiniBrowser/mac/SettingsController.h:
* Tools/MiniBrowser/mac/SettingsController.m:
(-[SettingsController _populateMenu:]):
(-[SettingsController validateMenuItem:]):
(-[SettingsController toggleTabFocusesLinksEnabled:]):
(-[SettingsController tabFocusesLinksEnabled]):
* Tools/MiniBrowser/mac/WK1BrowserWindowController.m:
(-[WK1BrowserWindowController didChangeSettings]):
* Tools/MiniBrowser/mac/WK2BrowserWindowController.m:
(-[WK2BrowserWindowController didChangeSettings]):

Canonical link: https://commits.webkit.org/299923@main

286921d

Misc iOS, visionOS, tvOS & watchOS macOS Linux Windows Apple Internal
✅ 🧪 style ✅ 🛠 ios ✅ 🛠 mac ✅ 🛠 wpe 🛠 win ✅ 🛠 ios-apple
✅ 🧪 bindings ✅ 🛠 ios-sim ✅ 🛠 mac-AS-debug 🧪 wpe-wk2 🧪 win-tests ✅ 🛠 mac-apple
✅ 🧪 webkitperl 🧪 ios-wk2 🧪 api-mac ✅ 🧪 api-wpe ✅ 🛠 vision-apple
🧪 ios-wk2-wpt 🧪 mac-wk1 ✅ 🛠 wpe-cairo
🧪 api-ios 🧪 mac-wk2 ✅ 🛠 gtk
✅ 🛠 vision 🧪 mac-AS-debug-wk2 🧪 gtk-wk2
✅ 🛠 vision-sim 🧪 mac-wk2-stress ✅ 🧪 api-gtk
🧪 vision-wk2 🧪 mac-intel-wk2 🛠 playstation
✅ 🛠 🧪 unsafe-merge ✅ 🛠 tv
🛠 tv-sim
✅ 🛠 watch
🛠 watch-sim

@aprotyas aprotyas self-assigned this Sep 13, 2025
@aprotyas aprotyas added the Tools / Tests Tools in the Tools directory, build issues, test infrastructure, and bugs in test cases label Sep 13, 2025
@aprotyas
Copy link
Member Author

Thanks for the review!

@aprotyas aprotyas added the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label Sep 13, 2025
…h tab key navigation

https://bugs.webkit.org/show_bug.cgi?id=298806
rdar://160504199

Reviewed by Aditya Keerthi.

This patch introduces a toggle in MiniBrowser that plumbs into
`WKPreferences.tabFocusesLinks`, allowing users to focus links and form
controls through tab key navigation, akin to Safari's "Press Tab to
highlight each item on a webpage" preference.

* Tools/MiniBrowser/mac/SettingsController.h:
* Tools/MiniBrowser/mac/SettingsController.m:
(-[SettingsController _populateMenu:]):
(-[SettingsController validateMenuItem:]):
(-[SettingsController toggleTabFocusesLinksEnabled:]):
(-[SettingsController tabFocusesLinksEnabled]):
* Tools/MiniBrowser/mac/WK1BrowserWindowController.m:
(-[WK1BrowserWindowController didChangeSettings]):
* Tools/MiniBrowser/mac/WK2BrowserWindowController.m:
(-[WK2BrowserWindowController didChangeSettings]):

Canonical link: https://commits.webkit.org/299923@main
@webkit-commit-queue
Copy link
Collaborator

Committed 299923@main (a2cf34f): https://commits.webkit.org/299923@main

Reviewed commits have been landed. Closing PR #50689 and removing active labels.

@webkit-commit-queue webkit-commit-queue merged commit a2cf34f into WebKit:main Sep 13, 2025
@webkit-commit-queue webkit-commit-queue removed the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label Sep 13, 2025
@aprotyas aprotyas deleted the eng/298806 branch September 13, 2025 01:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Tools / Tests Tools in the Tools directory, build issues, test infrastructure, and bugs in test cases

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants