parent
9eccaea09c
commit
7b20bf4792
@ -1116,9 +1116,6 @@ class CommandDispatcher:
|
|||||||
if index == 'last':
|
if index == 'last':
|
||||||
self._tab_focus_last()
|
self._tab_focus_last()
|
||||||
return
|
return
|
||||||
elif not no_last and index == self._current_index() + 1:
|
|
||||||
self._tab_focus_last(show_error=False)
|
|
||||||
return
|
|
||||||
elif index is None:
|
elif index is None:
|
||||||
self.tab_next()
|
self.tab_next()
|
||||||
return
|
return
|
||||||
@ -1126,6 +1123,10 @@ class CommandDispatcher:
|
|||||||
if index < 0:
|
if index < 0:
|
||||||
index = self._count() + index + 1
|
index = self._count() + index + 1
|
||||||
|
|
||||||
|
if not no_last and index == self._current_index() + 1:
|
||||||
|
self._tab_focus_last(show_error=False)
|
||||||
|
return
|
||||||
|
|
||||||
if 1 <= index <= self._count():
|
if 1 <= index <= self._count():
|
||||||
self._set_current_index(index - 1)
|
self._set_current_index(index - 1)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user