{"id":0,"registry":{"0":{"storedTextString":"","submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1},"derivationIds":["01EEB685-9B00-41FB-93C8-42A027DA687F","8D3D04EB-8DC1-4EEA-B5FF-8CF9B4E52AA2","261490E9-2372-4753-A8D2-3C3A221EBFAC","97D32E9C-DD84-44BF-A620-2A265273BB4F","F443C71C-4897-4384-AE64-A0489916D23E","4C0D938C-24B4-4F06-876E-5CB427BF91EC","E6B1CA6D-D173-41FD-ABF9-E52967728092","DD4CBB56-2B45-4E19-B727-CB7EE9B51F00","77FCCCA3-3EDC-431B-B25B-30A80EA977EC","B1AB7843-D001-4C5C-8956-CC6EE8736BC4","54ED45D9-5274-487B-A681-E25E840D8810","AA33CC46-C876-4D10-B040-BF18A0E3477E"],"id":"F77AC083-12AF-4565-840D-8E41AC908F47","grabbingEnabled":false,"droppingEnabled":true,"halosEnabled":true,"_FontSize":15,"_ShowGutter":false,"_TextMode":"text","_Theme":"chrome","_LineWrapping":false,"_ShowInvisibles":false,"_ShowPrintMargin":false,"_ShowIndents":false,"_ShowActiveLine":false,"_SoftTabs":true,"storedString":"3 + 4","hasRobertsKeys":true,"_StyleClassNames":["Morph","CodeEditor","ace_editor","emacs-mode","ace_nobold","ace-chrome","ace_multiselect"],"eventHandler":{"__isSmartRef__":true,"id":2},"layout":{"__isSmartRef__":true,"id":3},"accessibleInInactiveWindow":true,"_isFocused":false,"showsHalos":false,"_Rotation":0,"_Scale":1,"name":"KeyPressInspector","partsBinMetaInfo":{"__isSmartRef__":true,"id":4},"_AutocompletionEnabled":false,"_ShowWarnings":false,"allowInput":true,"prevScroll":[0,0],"_StyleSheet":{"__isSmartRef__":true,"id":8},"_PreviousBorderWidth":0,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11},"__LivelyClassName__":"lively.morphic.CodeEditor","__SourceModuleName__":"Global.lively.ide.CodeEditor","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(185.5,-16.0)"},"1":{"_BorderWidth":0,"_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":true,"__serializedExpressions__":["_Extent","_BorderColor","extent"],"__LivelyClassName__":"lively.morphic.CodeEditorShape","__SourceModuleName__":"Global.lively.ide.CodeEditor","_Extent":"lively.pt(228.0,147.0)","_BorderColor":"Color.rgb(95,94,95)","extent":"lively.pt(228.0,147.0)"},"2":{"morph":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3":{"resizeWidth":false,"resizeHeight":false,"scaleHorizontal":false,"centeredHorizontal":true},"4":{"partName":"KeyPressInspector","requiredModules":[],"partsSpaceName":"PartsBin/Debugging/","comment":"When opened this little gadget will print the currently pressed keys.","changes":[{"__isSmartRef__":true,"id":5},{"__isSmartRef__":true,"id":6},{"__isSmartRef__":true,"id":7}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Mon Jun 17 2013 03:39:05 GMT-0700 (PDT)\")"},"5":{"author":"robertkrahn","message":"no comment","id":"401386FB-ED59-4B2A-B926-EA3424BFCF7E","__serializedExpressions__":["date"],"date":"new Date(\"Mon Jun 17 2013 03:39:05 GMT-0700 (PDT)\")"},"6":{"author":"robertkrahn","message":"initial","id":"D671F21E-F331-460E-8C16-5DBE3AC9DC23","__serializedExpressions__":["date"],"date":"new Date(\"Tue Jun 11 2013 01:17:18 GMT-0700 (PDT)\")"},"7":{"__serializedExpressions__":["date"],"author":"robertkrahn","message":"no comment","id":"B4E153CA-8EBC-4A3A-805B-7ADEAFFCBE29","date":"new Date(\"Mon Apr 07 2014 22:25:36 GMT-0700 (PDT)\")"},"8":{"rules":[{"__isSmartRef__":true,"id":9}],"originMorph":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.StyleSheet","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"9":{"declarations":[{"__isSmartRef__":true,"id":10}],"styleSheet":{"__isSmartRef__":true,"id":8},"selector":".CodeEditor","__LivelyClassName__":"lively.morphic.StyleSheetRule","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"10":{"values":["1px","solid","#CCCCCC"],"rule":{"__isSmartRef__":true,"id":9},"property":"outline","priority":false,"__LivelyClassName__":"lively.morphic.StyleSheetDeclaration","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"11":{"showKey":{"__isSmartRef__":true,"id":12},"onOwnerChanged":{"__isSmartRef__":true,"id":15}},"12":{"varMapping":{"__isSmartRef__":true,"id":13},"source":"function showKey(key) {\n    // connect($world, 'pressedKeys', this, 'showKey')\n    // $world.showPressedKeys = true;\n    var lines = (key + '\\n' + this.textString).split('\\n');\n    lines = lines.slice(0,7);\n    this.textString = lines.join('\\n');\n    Functions.debounceNamed(this.id, 3000, function() {\n        this.textString = '';\n    }.bind(this))();\n}","funcProperties":{"__isSmartRef__":true,"id":14},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13":{"this":{"__isSmartRef__":true,"id":0}},"14":{"__serializedExpressions__":["timestamp"],"user":"robertkrahn","tags":[],"timestamp":"new Date(\"Mon Apr 07 2014 22:21:20 GMT-0700 (PDT)\")"},"15":{"varMapping":{"__isSmartRef__":true,"id":16},"source":"function onOwnerChanged(owner) {\n    // this.openInWorld();\n    if (!owner) {\n        $world.showPressedKeys = false;\n        disconnect($world, 'pressedKeys', this, 'showKey');\n    } else {\n        $world.showPressedKeys = true;\n        connect($world, 'pressedKeys', this, 'showKey');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":21},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16":{"this":{"__isSmartRef__":true,"id":0},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17}},"17":{"$super":{"__isSmartRef__":true,"id":18}},"18":{"varMapping":{"__isSmartRef__":true,"id":19},"source":"function () {\n                    try {\n                        return Object.getPrototypeOf(obj)[name].apply(obj, arguments)\n                    } catch (e) {\n                        if ($world)\n                            $world.logError(e, 'Error in $super call')\n                        else\n                            alert('Error in $super call: ' + e + '\\n' + e.stack);\n                        return null;\n                    }\n                }","funcProperties":{"__isSmartRef__":true,"id":20},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19":{"obj":{"__isSmartRef__":true,"id":0},"name":"onOwnerChanged"},"20":{},"21":{"__serializedExpressions__":["timestamp"],"user":"robertkrahn","tags":[],"timestamp":"new Date(\"Mon Apr 07 2014 22:24:46 GMT-0700 (PDT)\")"},"isSimplifiedRegistry":true}}