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