mirror of
https://github.com/lalbornoz/roar.git
synced 2024-11-22 07:16:38 +00:00
libroar/RoarCanvasWindow.py:onKeyboardInput(): enter pdb on <Shift> <Pause>.
This commit is contained in:
parent
d7ebed77f7
commit
1487f2eb9a
@ -136,10 +136,14 @@ class RoarCanvasWindow(GuiWindow):
|
|||||||
|
|
||||||
# {{{ onKeyboardInput(self, event)
|
# {{{ onKeyboardInput(self, event)
|
||||||
def onKeyboardInput(self, event):
|
def onKeyboardInput(self, event):
|
||||||
viewRect = self.GetViewStart(); eventDc = self.backend.getDeviceContext(self.GetClientSize(), self, viewRect);
|
if (event.GetKeyCode() == wx.WXK_PAUSE) \
|
||||||
keyChar, keyModifiers = chr(event.GetUnicodeKey()), event.GetModifiers()
|
and (event.GetModifiers() == wx.MOD_SHIFT):
|
||||||
if not self.applyTool(eventDc, False, keyChar, keyModifiers, None, None, None, None, self.commands.currentTool, viewRect):
|
import pdb; pdb.set_trace()
|
||||||
event.Skip()
|
else:
|
||||||
|
viewRect = self.GetViewStart(); eventDc = self.backend.getDeviceContext(self.GetClientSize(), self, viewRect);
|
||||||
|
keyChar, keyModifiers = chr(event.GetUnicodeKey()), event.GetModifiers()
|
||||||
|
if not self.applyTool(eventDc, False, keyChar, keyModifiers, None, None, None, None, self.commands.currentTool, viewRect):
|
||||||
|
event.Skip()
|
||||||
# }}}
|
# }}}
|
||||||
# {{{ onEnterWindow(self, event)
|
# {{{ onEnterWindow(self, event)
|
||||||
def onEnterWindow(self, event):
|
def onEnterWindow(self, event):
|
||||||
|
Loading…
Reference in New Issue
Block a user