feat(macos): if the search box is empty directly close the box
parent
9fb03ba55c
commit
c8f56ddaf8
|
|
@ -431,7 +431,12 @@ extension Ghostty {
|
|||
}
|
||||
#if canImport(AppKit)
|
||||
.onExitCommand {
|
||||
Ghostty.moveFocus(to: surfaceView)
|
||||
if searchState.needle.isEmpty {
|
||||
Ghostty.moveFocus(to: surfaceView)
|
||||
onClose()
|
||||
} else {
|
||||
Ghostty.moveFocus(to: surfaceView)
|
||||
}
|
||||
}
|
||||
#endif
|
||||
.backport.onKeyPress(.return) { modifiers in
|
||||
|
|
|
|||
Loading…
Reference in New Issue