Start cursor at Change-Id on entering ChangeView

In order to avoid having urwid warp the cursor to a non-selectable
widget when moving to a new ChangeView, set focus to the first item
we know will be selectable at the top of the screen, the Change-Id.

Change-Id: Ibd502eb18496eec37383370bb15a4f4cd8b3e5d7
This commit is contained in:
Jeremy Stanley 2021-10-09 12:37:18 +00:00
parent 3555a0d211
commit cba4bb4098

View File

@ -665,7 +665,7 @@ class ChangeView(urwid.WidgetWrap):
self.checkGitRepo()
self.refresh()
self.listbox.set_focus(0)
self.grid.set_focus(1)
change_info.set_focus(0)
def checkGitRepo(self):
missing_revisions = set()