MCPcopy
hub / github.com/MrNothing/AI-Blocks / handleKeyUp

Method handleKeyUp

Sources/src/Model/Controllers/InputService.js:43–66  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 3

updateMethod · 0.80

Tested by

no test coverage detected