mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-19 22:10:29 +00:00
macos: Cmd+W closes settings window if focused
This commit is contained in:
@@ -82,7 +82,11 @@ struct GhosttyApp: App {
|
||||
}
|
||||
|
||||
func close() {
|
||||
guard let surfaceView = focusedSurface else { return }
|
||||
guard let surfaceView = focusedSurface else {
|
||||
Self.closeWindow()
|
||||
return
|
||||
}
|
||||
|
||||
guard let surface = surfaceView.surface else { return }
|
||||
ghostty.requestClose(surface: surface)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user