{"version":3,"sources":["https://lively-kernel.org/lively4/lively4-tom/src/client/stablefocus.js"],"names":["cop","StableFocusLayer","layer","window","refineObject","document","body","focus","withoutLayers","lively","focusWithoutScroll","beGlobal"],"mappings":";;;;;;AAGYA,S;;;;;;;;;;;;;;;;;;;;AAEZ,UAAIC,mBAAmBD,IAAIE,KAAJ,CAAUC,MAAV,EAAkB,kBAAlB,EAAsCC,YAAtC,CAAmDC,SAASC,IAA5D,EAAkE;;AAExFC,gBAAQ;AACP;AACC,iBAAOP,IAAIQ,aAAJ,CAAkB,CAACP,gBAAD,CAAlB,EAAsC,MAAM;AAClDQ,mBAAOC,kBAAP,CAA0B,IAA1B;AACD,WAFO,CAAP;AAGD;AAPuF,OAAlE,CAAvB;;;;;;;;;;;;;;;AAUAT,uBAAiBU,QAAjB;;yBAEeV,gB","file":"stablefocus.js","sourcesContent":["/* Works around a Workaround in CodeMirror triggered a document.body.focus...\n  that moved our world */\n\nimport * as cop  from \"src/client/ContextJS/src/contextjs.js\";\n\nvar StableFocusLayer = cop.layer(window, \"StableFocusLayer\").refineObject(document.body, {\n\n focus() {\n\t // call a special focus that will call the native focus...\n   return cop.withoutLayers([StableFocusLayer], () => {\n\t  \tlively.focusWithoutScroll(this)\n  })\n }\n})\n\nStableFocusLayer.beGlobal();\n\nexport default StableFocusLayer;\n"]}