diff --git a/gui/wxpython/lmgr/frame.py b/gui/wxpython/lmgr/frame.py index b19fc91ec73..0f0b09a0e58 100644 --- a/gui/wxpython/lmgr/frame.py +++ b/gui/wxpython/lmgr/frame.py @@ -2237,18 +2237,6 @@ def OnKeyDown(self, event): else: self.notebook.SetSelectionByName("layers") - try: - ckc = chr(kc) - except ValueError: - event.Skip() - return - - if event.CtrlDown(): - if kc == "R": - self.OnAddRaster(None) - elif kc == "V": - self.OnAddVector(None) - event.Skip() def OnCloseWindow(self, event): diff --git a/gui/wxpython/main_window/frame.py b/gui/wxpython/main_window/frame.py index be4b6a55109..19fa9802ce9 100644 --- a/gui/wxpython/main_window/frame.py +++ b/gui/wxpython/main_window/frame.py @@ -694,7 +694,6 @@ def BuildPanes(self): def BindEvents(self): # bindings self.Bind(wx.EVT_CLOSE, self.OnCloseWindowOrExit) - self.Bind(wx.EVT_KEY_DOWN, self.OnKeyDown) def _show_demo_map(self): """If in demolocation, add demo map to map display @@ -2276,24 +2275,6 @@ def OnDeleteLayer(self, event): except ValueError: pass - def OnKeyDown(self, event): - """Key pressed""" - kc = event.GetKeyCode() - - try: - kc = chr(kc) - except ValueError: - event.Skip() - return - - if event.CtrlDown(): - if kc == "R": - self.OnAddRaster(None) - elif kc == "V": - self.OnAddVector(None) - - event.Skip() - def OnCloseWindow(self, event): """Cleanup when wxGUI is quitted""" self._closeWindow(event)