(self, event)
| 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() |
nothing calls this directly
no test coverage detected