macos: dummy search state for iOS

pull/9709/head
Mitchell Hashimoto 2025-11-25 20:05:48 -08:00
parent 5b2d66e261
commit 949a8ea53f
No known key found for this signature in database
GPG Key ID: 523D5DC389D273BC
2 changed files with 5 additions and 0 deletions

View File

@ -413,7 +413,9 @@ extension Ghostty {
.cornerRadius(6) .cornerRadius(6)
.focused($isSearchFieldFocused) .focused($isSearchFieldFocused)
.onExitCommand { .onExitCommand {
#if canImport(AppKit)
Ghostty.moveFocus(to: surfaceView) Ghostty.moveFocus(to: surfaceView)
#endif
} }
.backport.onKeyPress(.return) { modifiers in .backport.onKeyPress(.return) { modifiers in
guard let surface = surfaceView.surface else { return .ignored } guard let surface = surfaceView.surface else { return .ignored }

View File

@ -40,6 +40,9 @@ extension Ghostty {
/// True when the bell is active. This is set inactive on focus or event. /// True when the bell is active. This is set inactive on focus or event.
@Published var bell: Bool = false @Published var bell: Bool = false
// The current search state. When non-nil, the search overlay should be shown.
@Published var searchState: SearchState? = nil
// Returns sizing information for the surface. This is the raw C // Returns sizing information for the surface. This is the raw C
// structure because I'm lazy. // structure because I'm lazy.