MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / kbEvent

Method kbEvent

gui/builtinAdditionPanes/commandView.py:108–118  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

106 pass
107
108 def kbEvent(self, event):
109 keycode = event.GetKeyCode()
110 modifiers = event.GetModifiers()
111 if keycode == wx.WXK_ESCAPE and modifiers == wx.MOD_NONE:
112 self.unselectAll()
113 elif keycode == 65 and modifiers == wx.MOD_CONTROL:
114 self.selectAll()
115 elif keycode in (wx.WXK_DELETE, wx.WXK_NUMPAD_DELETE) and modifiers == wx.MOD_NONE:
116 commandFits = self.getSelectedCommandFits()
117 self.removeCommandFits(commandFits)
118 event.Skip()
119
120 def handleDrag(self, type, fitID):
121 # Those are drags coming from pyfa sources, NOT builtin wx drags

Callers

nothing calls this directly

Calls 4

removeCommandFitsMethod · 0.95
unselectAllMethod · 0.80
selectAllMethod · 0.80

Tested by

no test coverage detected