Do not remove items on Del key used with modifier keys

This commit is contained in:
DarkPhoenix
2019-04-29 00:02:29 +03:00
parent 8b75b5f184
commit cb7f0052c4
7 changed files with 7 additions and 7 deletions

View File

@@ -285,7 +285,7 @@ class FittingView(d.Display):
self.unselectAll()
elif keycode == 65 and mstate.GetModifiers() == wx.MOD_CONTROL:
self.selectAll()
elif keycode == wx.WXK_DELETE or keycode == wx.WXK_NUMPAD_DELETE:
elif keycode in (wx.WXK_DELETE, wx.WXK_NUMPAD_DELETE) and mstate.GetModifiers() == wx.MOD_NONE:
modules = [m for m in self.getSelectedMods() if not m.isEmpty]
self.removeModule(modules)
event.Skip()