I have been hacking on robot_Kaja and I do not know how to implement an enhancement. Take the 'Maze' script as an example. It requires the Common and PlaygroundDefinition libraries. Then it calls 'buildMaze', which is defined in PlaygroundDefinition. My enhancement is simple: indicate an error if the user removes the 'require PlaygroundDefinition' command, but leaves the call to 'buildMaze'.
My approach has been to trap the removal of a command via action map. The action map works if the user removes one command at a time. It fails if the user selects multiple commands and deletes them all in one action. So, I've come here today to ask the following:
Is the action map expected to work for the case where the user selects multiple lines?
Is there a better approach?