Skip to content

Commit

Permalink
Fix problem where buttons were not pressable on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
balshetzer committed Jul 12, 2013
1 parent 4ab8dd1 commit 1284e0c
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 1284e0c

Please sign in to comment.