mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
ios: disable secure input
This commit is contained in:
@ -52,8 +52,10 @@ extension Ghostty {
|
|||||||
// True if we're hovering over the left URL view, so we can show it on the right.
|
// True if we're hovering over the left URL view, so we can show it on the right.
|
||||||
@State private var isHoveringURLLeft: Bool = false
|
@State private var isHoveringURLLeft: Bool = false
|
||||||
|
|
||||||
|
#if canImport(AppKit)
|
||||||
// Observe SecureInput to detect when its enabled
|
// Observe SecureInput to detect when its enabled
|
||||||
@ObservedObject private var secureInput = SecureInput.shared
|
@ObservedObject private var secureInput = SecureInput.shared
|
||||||
|
#endif
|
||||||
|
|
||||||
@EnvironmentObject private var ghostty: Ghostty.App
|
@EnvironmentObject private var ghostty: Ghostty.App
|
||||||
|
|
||||||
@ -200,6 +202,7 @@ extension Ghostty {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if canImport(AppKit)
|
||||||
// If we have secure input enabled and we're the focused surface and window
|
// If we have secure input enabled and we're the focused surface and window
|
||||||
// then we want to show the secure input overlay.
|
// then we want to show the secure input overlay.
|
||||||
if (secureInput.enabled &&
|
if (secureInput.enabled &&
|
||||||
@ -207,6 +210,7 @@ extension Ghostty {
|
|||||||
windowFocus) {
|
windowFocus) {
|
||||||
SecureInputOverlay()
|
SecureInputOverlay()
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// If our surface is not healthy, then we render an error view over it.
|
// If our surface is not healthy, then we render an error view over it.
|
||||||
if (!surfaceView.healthy) {
|
if (!surfaceView.healthy) {
|
||||||
|
Reference in New Issue
Block a user