Skip to content

Commit

Permalink
wxGUI: remove unnecessary key press event handlers (#2528)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmszi committed Aug 23, 2022
1 parent 1f72405 commit 3aca5a4
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions gui/wxpython/lmgr/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -2525,19 +2525,6 @@ def OnKeyDown(self, event):
self.notebook.SetSelectionByName('output')
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):
Expand Down

0 comments on commit 3aca5a4

Please sign in to comment.