Commit 1db6d65e authored by Duane Johnson's avatar Duane Johnson

Fixed that arrow keys on Windows would move between controls after first extruder movement.

parent 437f0699
......@@ -68,7 +68,7 @@ class BufferedCanvas(wx.Panel):
ID=-1,
pos=wx.DefaultPosition,
size=wx.DefaultSize,
style=wx.NO_FULL_REPAINT_ON_RESIZE):
style=wx.NO_FULL_REPAINT_ON_RESIZE|wx.WANTS_CHARS):
wx.Panel.__init__(self,parent,ID,pos,size,style)
# Bind events
......
......@@ -42,7 +42,7 @@ class XYButtons(BufferedCanvas):
def onTopLevelKey(self, evt):
# Let user press escape on any control, and return focus here
if evt.GetKeyCode() == wx.WXK_ESCAPE:
self.SetFocus()
self.SetFocus()
evt.Skip()
def onKey(self, evt):
......@@ -65,7 +65,6 @@ class XYButtons(BufferedCanvas):
self.concentric = self.keypad_idx
x, y = self.getMovement()
self.moveCallback(x, y)
evt.Skip()
def rotateKeypadIndex(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment