Skip to content

Commit f48164e

Browse files
committed
scripts/python/app/NUT-Monitor-py2gtk2.in: explicitly set initial focus to host field [#3514]
It was like that before, but leave nothing to chance :) Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
1 parent ca014e1 commit f48164e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

scripts/python/app/NUT-Monitor-py2gtk2.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,9 @@ class interface :
297297
self.__widgets["ups_authentication_password"].set_property("can-focus", True)
298298
self.__widgets["ups_connect"].set_property("can-focus", True)
299299

300+
# Set initial focus to host field
301+
self.__widgets["ups_host_entry"].grab_focus()
302+
300303
# Chaining focus via move-focus signal or just letting GTK handle it
301304
# since we've ensured they can all focus.
302305
# To be more explicit, we could set the focus chain on their common parents.

0 commit comments

Comments
 (0)