MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / onKeyUp

Method onKeyUp

gui/builtinItemStatsViews/itemTraits.py:42–49  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

40 self.copySelectionToClipboard()
41
42 def onKeyUp(self, event):
43 keyCode = event.GetKeyCode()
44 # Ctrl + C
45 if keyCode == 67 and event.ControlDown():
46 self.copySelectionToClipboard()
47 # Ctrl + A
48 if keyCode == 65 and event.ControlDown():
49 self.traits.SelectAll()
50
51 def copySelectionToClipboard(self):
52 selectedText = self.traits.SelectionToText()

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected