mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-14 03:25:50 +00:00
After finishing an inline tab title edit (via keybind or double-click), `TabTitleEditor.finishEditing()` calls `makeFirstResponder(nil)` to clear focus from the text field, leaving the window itself as first responder. No code path restores focus to the terminal surface, so all keyboard input is lost until the user clicks into a pane. Add a `tabTitleEditorDidFinishEditing` delegate callback that fires after every edit (commit or cancel). TerminalWindow implements it by calling `makeFirstResponder(focusedSurface)` to hand focus back to the terminal. Fixes https://github.com/ghostty-org/ghostty/discussions/11315 Co-Authored-By: Claude <noreply@anthropic.com>