Replies: 1 comment 2 replies
-
Hey did you ever figure this out? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to add a search keyboard shortcut to the search bar in a NavigationSplitView, but found an edge case that I think Introspect should be able to help with: The code below works to trigger the search view when the input has no value (
isSearching = false
), but the shortcut does not work after that to bring focus back to the search bar, sinceisSearching
seems to remain true when the input contains data. I haven't seen a method for associating FocusState withsearchable
, so I looked for an introspect modified that might help. I found that thesearchField
modified does not have an implementation for Mac. I ran a capture view hierarchy to see if I could add a local modifier, but wasn't able to figure out where the AppKitSearchField class in the attached screenshot should map to, as I couldn't resolve it. Is it possible to add support to Introspect for this?Beta Was this translation helpful? Give feedback.
All reactions