macos: fix iOS build

pull/9709/head
Mitchell Hashimoto 2025-11-25 20:52:26 -08:00
parent 7320b234b4
commit 0e974f85ed
No known key found for this signature in database
GPG Key ID: 523D5DC389D273BC
1 changed files with 2 additions and 2 deletions

View File

@ -412,11 +412,11 @@ extension Ghostty {
.background(Color.primary.opacity(0.1))
.cornerRadius(6)
.focused($isSearchFieldFocused)
#if canImport(AppKit)
.onExitCommand {
#if canImport(AppKit)
Ghostty.moveFocus(to: surfaceView)
#endif
}
#endif
.backport.onKeyPress(.return) { modifiers in
guard let surface = surfaceView.surface else { return .ignored }
let action = modifiers.contains(.shift)