From 80b6b151db7aca96f0f78cf065fae2ae771e1b6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz?= Date: Sun, 15 Sep 2019 15:17:27 +0200 Subject: [PATCH] libroar/RoarCanvasWindow.py:onKeyboardInput(): enter pdb on . --- libroar/RoarCanvasWindow.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/libroar/RoarCanvasWindow.py b/libroar/RoarCanvasWindow.py index 8b12ac3..0b57205 100644 --- a/libroar/RoarCanvasWindow.py +++ b/libroar/RoarCanvasWindow.py @@ -136,10 +136,14 @@ class RoarCanvasWindow(GuiWindow): # {{{ onKeyboardInput(self, event) def onKeyboardInput(self, event): - 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() + 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); + 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) def onEnterWindow(self, event):