(event)
| 19 | } |
| 20 | |
| 21 | handleKey(event) { |
| 22 | window.service.keysPressed[event.key]=1; |
| 23 | |
| 24 | if(this.isKeyPressed("Control")) |
| 25 | { |
| 26 | if(event.key == 's'){ |
| 27 | if(window.service.project!=null) |
| 28 | window.service.menuUI.saveProjectClicked(); |
| 29 | } |
| 30 | |
| 31 | if(event.key == 'c' && document.activeElement.id=="body"){ |
| 32 | if(window.service.project!=null) |
| 33 | window.service.copySelection(); |
| 34 | } |
| 35 | |
| 36 | if(event.key == 'v' && document.activeElement.id=="body"){ |
| 37 | if(window.service.project!=null) |
| 38 | window.service.pasteSelection(); |
| 39 | } |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | handleKeyUp(event) |
| 44 | { |
nothing calls this directly
no test coverage detected