From 7962651dd8bba7644e16118a8375e7722668a3f4 Mon Sep 17 00:00:00 2001 From: William Walker Date: Mon, 14 Jul 2025 16:52:13 -0400 Subject: [PATCH] fix: rename tab title popup focus --- macos/Sources/Ghostty/SurfaceView_AppKit.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/macos/Sources/Ghostty/SurfaceView_AppKit.swift b/macos/Sources/Ghostty/SurfaceView_AppKit.swift index 0a2f2c847..47c7eba22 100644 --- a/macos/Sources/Ghostty/SurfaceView_AppKit.swift +++ b/macos/Sources/Ghostty/SurfaceView_AppKit.swift @@ -480,7 +480,10 @@ extension Ghostty { // Add buttons alert.addButton(withTitle: "OK") alert.addButton(withTitle: "Cancel") - + + // Make the text field the first responder so it gets focus + alert.window.initialFirstResponder = textField + let response = alert.runModal() // Check if the user clicked "OK"