|
@@ -162,8 +162,10 @@ class FocusWidget(urwid.WidgetPlaceholder):
|
|
|
yield path
|
|
|
self.advance_focus()
|
|
|
path = self.container.get_focus_path()
|
|
|
+ while len(path) < len(self.initial_focus):
|
|
|
+ path.extend([0])
|
|
|
if path == self.initial_focus:
|
|
|
- break
|
|
|
+ return
|
|
|
|
|
|
def advance_focus(self, reverse=False):
|
|
|
|
|
@@ -198,8 +200,10 @@ class FocusWidget(urwid.WidgetPlaceholder):
|
|
|
return
|
|
|
except IndexError:
|
|
|
path[idx] = 0
|
|
|
-
|
|
|
- self.container.set_focus_path(self.initial_focus)
|
|
|
+ while len(path) < len(self.initial_focus):
|
|
|
+ path.extend([0])
|
|
|
+
|
|
|
+ self._set_focus_path(self.initial_focus)
|
|
|
|
|
|
class SuggestionPopup(urwid.Overlay):
|
|
|
|