changeset 99:b2fee87c1d5a

Fixed focus when first row is not selectable in TableContainer
author Goffi <goffi@goffi.org>
date Mon, 08 Sep 2014 18:11:16 +0200
parents 8bf5a35450f0
children 4629924c136f
files urwid_satext/sat_widgets.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/urwid_satext/sat_widgets.py	Mon Sep 08 18:10:30 2014 +0200
+++ b/urwid_satext/sat_widgets.py	Mon Sep 08 18:11:16 2014 +0200
@@ -1443,6 +1443,8 @@
 
         if not columns.selectable() and columns.contents[-1][0].base_widget.selectable():
             columns.focus_position = len(columns.contents)-1
+        if not self.selectable() and columns.selectable():
+            pile.focus_position = len(pile.contents) - 1
         self._idx += 1
 
     def setRowIndex(self, idx):