Commits

Anonymous committed 7373977

Forced focus of explorer list when switching to Open Editor files

Comments (0)

Files changed (1)

 ##            while child.IsOk() and tree.GetItemText(child) != 'Editor':
 ##                child, cookie = tree.GetNextChild(node, cookie)
             tree.SelectItem(child)
+            self.explorer.list.SetFocus()
+            STATE = wxLIST_STATE_FOCUSED|wxLIST_STATE_SELECTED
+            self.explorer.list.SetItemState(0, STATE, STATE)
+
         else:
             self.tabs.SetSelection(1)