Skip to content

Commit

Permalink
Add 2 'SetFocus()'s
Browse files Browse the repository at this point in the history
  • Loading branch information
AAClause committed Jul 26, 2020
1 parent 0a0dbd6 commit 9c684ce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions addon/globalPlugins/brailleExtender/brailleTablesExt.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,9 @@ def makeSettings(self, settingsSizer):
).Bind(wx.EVT_BUTTON, self.onReloadClick)
sHelper.addItem(bHelper)

def postInit(self):
self.groupsList.SetFocus()

def onSetEntries(self, evt=None):
self.groupsList.DeleteAllItems()
for group in self.tmpGroups:
Expand Down
3 changes: 3 additions & 0 deletions addon/globalPlugins/brailleExtender/dictionaries.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,9 @@ def makeSettings(self, settingsSizer):
).Bind(wx.EVT_BUTTON, self.onReloadDictClick)
sHelper.addItem(bHelper)

def postInit(self):
self.dictList.SetFocus()

def onSetEntries(self, evt=None):
self.dictList.DeleteAllItems()
for entry in self.tmpDict:
Expand Down

0 comments on commit 9c684ce

Please sign in to comment.