diff --git a/Sources/SplashGUI/Views/SettingsLayout.swift b/Sources/SplashGUI/Views/SettingsLayout.swift
index 91fd6e0..3f2afc0 100644
--- a/Sources/SplashGUI/Views/SettingsLayout.swift
+++ b/Sources/SplashGUI/Views/SettingsLayout.swift
@@ -18,6 +18,13 @@ struct SettingsPage<Content: View>: View {
.frame(maxWidth: .infinity, alignment: .leading)
.padding(16)
}
+ // NSHostingView never resigns the field editor when a click lands on a non-control
+ // area, so a focused field's ring stayed lit after clicking elsewhere. A tap that no
+ // control consumed (fields, buttons and toggles eat their own clicks) ends editing —
+ // matching AppKit: empty space deselects, clicking another control behaves natively.
+ .onTapGesture {
+ NSApp.keyWindow?.makeFirstResponder(nil)
+ }
}
}
Click-off deselects: a tap no control consumed ends field editing (NSHostingView keeps the field editor otherwise, so focus rings stuck on)
058047a783a350517565374c2ed167e50edbd880
cjosie <administrator@josie-c.com> · 2026-11-03T14:11 ·
browse files at this commit
parents:
cbc1f67