From cba4bb40982ac15d7d095a9090cc477f6e95d1ae Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Sat, 9 Oct 2021 12:37:18 +0000 Subject: [PATCH] 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 --- gertty/view/change.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gertty/view/change.py b/gertty/view/change.py index ce66eaf..65b51d3 100644 --- a/gertty/view/change.py +++ b/gertty/view/change.py @@ -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()