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