mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-17 09:16:11 +03:00
fix: rename tab title popup focus (#7944)
This fixes issue #7940 <img width="394" height="354" alt="Screenshot 2025-07-14 at 17 20 03" src="https://github.com/user-attachments/assets/453c49ed-2b91-4520-a8fe-031159454453" />
This commit is contained in:
@ -480,7 +480,10 @@ extension Ghostty {
|
|||||||
// Add buttons
|
// Add buttons
|
||||||
alert.addButton(withTitle: "OK")
|
alert.addButton(withTitle: "OK")
|
||||||
alert.addButton(withTitle: "Cancel")
|
alert.addButton(withTitle: "Cancel")
|
||||||
|
|
||||||
|
// Make the text field the first responder so it gets focus
|
||||||
|
alert.window.initialFirstResponder = textField
|
||||||
|
|
||||||
let response = alert.runModal()
|
let response = alert.runModal()
|
||||||
|
|
||||||
// Check if the user clicked "OK"
|
// Check if the user clicked "OK"
|
||||||
|
Reference in New Issue
Block a user