macos: fix iOS builds

pull/7523/head
Mitchell Hashimoto 2025-06-04 13:37:42 -07:00
parent 9474092f77
commit 01fa87f2ab
No known key found for this signature in database
GPG Key ID: 523D5DC389D273BC
1 changed files with 2 additions and 0 deletions

View File

@ -461,6 +461,7 @@ extension Ghostty {
}
}
#if canImport(AppKit)
/// When changing the split state, or going full screen (native or non), the terminal view
/// will lose focus. There has to be some nice SwiftUI-native way to fix this but I can't
/// figure it out so we're going to do this hacky thing to bring focus back to the terminal
@ -514,6 +515,7 @@ extension Ghostty {
queue.async(execute: work)
}
}
#endif
}
// MARK: Surface Environment Keys