Skip to content

Commit

Permalink
Merge pull request #103 from balshetzer/master
Browse files Browse the repository at this point in the history
Fix problem where buttons were not pressable on windows
  • Loading branch information
balshetzer committed Jul 12, 2013
2 parents 4ab8dd1 + 1284e0c commit d4688c7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions plover/gui/add_translation.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,13 @@ def __init__(self, parent, engine):

# events
button.Bind(wx.EVT_BUTTON, self.on_add_translation)
button.Bind(wx.EVT_SET_FOCUS, self.on_button_gained_focus)
# The reason for the focus event here is to skip focus on tab traversal
# of the buttons. But it seems that on windows this prevents the button
# from being pressed. Leave this commented out until that problem is
# resolved.
#button.Bind(wx.EVT_SET_FOCUS, self.on_button_gained_focus)
cancel.Bind(wx.EVT_BUTTON, self.on_close)
cancel.Bind(wx.EVT_SET_FOCUS, self.on_button_gained_focus)
#cancel.Bind(wx.EVT_SET_FOCUS, self.on_button_gained_focus)
self.strokes_text.Bind(wx.EVT_TEXT, self.on_strokes_change)
self.translation_text.Bind(wx.EVT_TEXT, self.on_translation_change)
self.strokes_text.Bind(wx.EVT_SET_FOCUS, self.on_strokes_gained_focus)
Expand Down

0 comments on commit d4688c7

Please sign in to comment.