Remove multiple cargo items with delete key

This commit is contained in:
DarkPhoenix
2019-04-25 09:27:52 +03:00
parent b7d6892d9f
commit 989f12453d
2 changed files with 38 additions and 22 deletions

View File

@@ -241,12 +241,11 @@ class DroneView(Display):
if row != -1:
col = self.getColumn(event.Position)
if col != self.getColIndex(State):
mstate = wx.GetMouseState()
try:
drone = self.drones[self.GetItemData(row)]
except IndexError:
return
if mstate.altDown:
if wx.GetMouseState().altDown:
self.removeDroneStacks([drone])
else:
self.removeDrone(drone)