(event)
| 41 | } |
| 42 | |
| 43 | handleKeyUp(event) |
| 44 | { |
| 45 | window.service.keysPressed[event.key]=0; |
| 46 | |
| 47 | if(document.activeElement!=null && document.activeElement.id=="body") |
| 48 | { |
| 49 | if(event.key == 'Delete'){ |
| 50 | if(window.service.selectedObject!=null) |
| 51 | { |
| 52 | window.service.sceneUI.findAndDeleteRecursive(null); |
| 53 | |
| 54 | for (let i in window.service.selectedObjects) |
| 55 | { |
| 56 | window.service.sceneUI.findAndDeleteRecursive2(null, window.service.selectedObjects[i]); |
| 57 | } |
| 58 | |
| 59 | window.service.selectedObjects = {}; |
| 60 | } |
| 61 | window.service.hierarchyUI.selectObject(null); |
| 62 | window.service.hierarchyUI.forceUpdate(); |
| 63 | window.service.sceneUI.update(); |
| 64 | } |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | isKeyPressed(key) |
| 69 | { |
nothing calls this directly
no test coverage detected