mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-12-28 17:14:39 +00:00
macos: dummy search state for iOS
This commit is contained in:
@@ -413,7 +413,9 @@ extension Ghostty {
|
||||
.cornerRadius(6)
|
||||
.focused($isSearchFieldFocused)
|
||||
.onExitCommand {
|
||||
#if canImport(AppKit)
|
||||
Ghostty.moveFocus(to: surfaceView)
|
||||
#endif
|
||||
}
|
||||
.backport.onKeyPress(.return) { modifiers in
|
||||
guard let surface = surfaceView.surface else { return .ignored }
|
||||
|
||||
@@ -40,6 +40,9 @@ extension Ghostty {
|
||||
|
||||
/// True when the bell is active. This is set inactive on focus or event.
|
||||
@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
|
||||
// structure because I'm lazy.
|
||||
|
||||
Reference in New Issue
Block a user