(self, event)
| 130 | self.mainFrame.command.Submit(cmd.GuiAddProjectedFighterCommand(fitID=fitID, itemID=itemID)) |
| 131 | |
| 132 | def kbEvent(self, event): |
| 133 | keycode = event.GetKeyCode() |
| 134 | modifiers = event.GetModifiers() |
| 135 | if keycode == wx.WXK_ESCAPE and modifiers == wx.MOD_NONE: |
| 136 | self.unselectAll() |
| 137 | elif keycode == 65 and modifiers == wx.MOD_CONTROL: |
| 138 | self.selectAll() |
| 139 | elif keycode in (wx.WXK_DELETE, wx.WXK_NUMPAD_DELETE) and modifiers == wx.MOD_NONE: |
| 140 | self.mainFrame.command.Submit(cmd.GuiRemoveProjectedItemsCommand( |
| 141 | fitID=self.mainFrame.getActiveFit(), |
| 142 | items=self.getSelectedProjectors(), |
| 143 | amount=math.inf)) |
| 144 | event.Skip() |
| 145 | |
| 146 | def handleDrag(self, type, fitID): |
| 147 | # Those are drags coming from pyfa sources, NOT builtin wx drags |
nothing calls this directly
no test coverage detected