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

Method onKeyUp

gui/builtinItemStatsViews/itemDescription.py:55–62  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

53 self.copySelectionToClipboard()
54
55 def onKeyUp(self, event):
56 keyCode = event.GetKeyCode()
57 # Ctrl + C
58 if keyCode == 67 and event.ControlDown():
59 self.copySelectionToClipboard()
60 # Ctrl + A
61 if keyCode == 65 and event.ControlDown():
62 self.description.SelectAll()
63
64 def copySelectionToClipboard(self):
65 selectedText = self.description.SelectionToText()

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected