Cleanup previous PR

Press on titlebar should focus window
This commit is contained in:
Kovid Goyal
2026-03-05 16:58:30 +05:30
parent 5e5243a52a
commit 917616d09b
2 changed files with 19 additions and 15 deletions

View File

@@ -1209,7 +1209,7 @@ class Window:
prefilled = ''
get_boss().get_line(
_('Enter the new title for this window below. An empty title will cause the default title to be used.'),
self.set_title, window=self, initial_value=prefilled)
self.set_title, window=self, initial_value=prefilled, window_title=_('Rename window'))
def set_user_var(self, key: str, val: str | bytes | None) -> None:
key = sanitize_control_codes(key).replace('\n', ' ')