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

master
Duane Johnson 2011-11-08 11:03:45 -06:00
parent 437f069921
commit 1db6d65e3c
2 changed files with 2 additions and 3 deletions

View File

@ -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

View File

@ -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):