macos: fix iOS build

This commit is contained in:
Mitchell Hashimoto
2025-11-25 20:52:26 -08:00
parent 7320b234b4
commit 0e974f85ed

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)