Use a different approach to handling window events
Use a different approach to handling window events

One that's less scary, and allows immediate garbage collection
(rather than waiting up to 500 ms). Does not work in IE8, though.

Also shows editors as blurred when the window loses focus.

notepadqq/CodeMirror,matthewbauer/CodeMirror,jpolitz/CodeMirror,rrandom/CodeMirror,adobe/CodeMirror2,supriyantomaftuh/CodeMirror,antimatter15/CodeMirror,matthewbauer/CodeMirror,KamranMackey/CodeMirror,d0liver/CodeMirror,jkaplon/CodeMirror,jpolitz/CodeMirror,melpon/CodeMirror,karthikeyansam/CodeMirror,jayaprabhakar/CodeMirror,sourcelair/CodeMirror,kuangyeheng/CodeMirror,anthonygego/CodeMirror,sekcheong/CodeMirror,qiankun007/CodeMirror,bfrohs/CodeMirror,TDaglis/CodeMirror,wingify/CodeMirror,ssxxue/CodeMirror,notepadqq/CodeMirror,nawroth/CodeMirror,webida/CodeMirror,systay/CodeMirror,webida/CodeMirror,r7kamura/CodeMirror,dperetti/CodeMirror,namin/CodeMirror,Ermlab/CodeMirror,ficristo/CodeMirror,xeronith/CodeMirror,DustinH/CodeMirror,sourcelair/CodeMirror,Icenium/CodeMirror,fivetran/CodeMirror,ZombieHippie/CodeMirror,happibum/CodeMirror-main,ThebingServices/CodeMirror,karevn/CodeMirror,axter/CodeMirror,flyskyko/CodeMirror,ejgallego/CodeMirror,sanyaade-iot/CodeMirror,philuchansky/CodeMirror,hackmdio/CodeMirror,belph/CodeMirror,namin/CodeMirror,adobe/CodeMirror2,jayaprabhakar/CodeMirror,TDaglis/CodeMirror,pabloferz/CodeMirror,manderson23/CodeMirror,karevn/CodeMirror,nawroth/CodeMirror,abdelouahabb/CodeMirror,grzegorzmazur/CodeMirror,TechnicalPursuit/CodeMirror,mihailik/CodeMirror,loopspace/CodeMirror,Jisuanke/CodeMirror,crazy4chrissi/CodeMirror,r7kamura/CodeMirror,notepadqq/CodeMirror,codio/CodeMirror,dudb/CodeMirror,supriyantomaftuh/CodeMirror,webida/CodeMirror,Dominator008/CodeMirror,pinbe/CodeMirror,flyskyko/CodeMirror,SidPresse/CodeMirror,schanzer/CodeMirror,bgrins/CodeMirror,kangkot/CodeMirror,dbarnett/CodeMirror,Allenice/CodeMirror,increpare/CodeMirror,nightwing/CodeMirror,kk9599/CodeMirror,ksanaforge/CodeMirror,ficristo/CodeMirror,kangkot/CodeMirror,manderson23/CodeMirror,anthonygego/CodeMirror,sgoo/CodeMirror,mtaran-google/CodeMirror,davidpham87/CodeMirror,matthewbauer/CodeMirror,djadmin/CodeMirror,MarcelGerber/CodeMirror,axter/CodeMirror,INTELOGIE/CodeMirror,MarcelGerber/CodeMirror,ThebingServices/CodeMirror,supriyantomaftuh/CodeMirror,mizchi/CodeMirror,pabloferz/CodeMirror,fmoliveira/CodeMirror,namin/CodeMirror,codio/CodeMirror,INTELOGIE/CodeMirror,rustemferreira/CodeMirror,ashmind/CodeMirror,InternetGuru/CodeMirror,rrandom/CodeMirror,amshali/CodeMirror,Navaneethsen/CodeMirror,GerHobbelt/CodeMirror2,TDaglis/CodeMirror,apatawari/CodeMirror,isdampe/CodeMirror,qiankun007/CodeMirror,elisee/CodeMirror,abdelouahabb/CodeMirror,xeronith/CodeMirror,fivetran/CodeMirror,apatawari/CodeMirror,thomasjm/CodeMirror,fmoliveira/CodeMirror,davidpham87/CodeMirror,DustinH/CodeMirror,bocharsky-bw/CodeMirror,SidPresse/CodeMirror,morrisonwudi/CodeMirror,jpolitz/CodeMirror,kerabromsmu/CodeMirror,michaelerobertsjr/CodeMirror,camellhf/CodeMirror,vanloswang/CodeMirror,bocharsky-bw/CodeMirror,belph/CodeMirror,vincentwoo/CodeMirror,kk9599/CodeMirror,MarcelGerber/CodeMirror,Dominator008/CodeMirror,NeZaMy/CodeMirror2,InternetGuru/CodeMirror,pjkui/CodeMirror,kk9599/CodeMirror,dudb/CodeMirror,philuchansky/CodeMirror,KamranMackey/CodeMirror,adobe/CodeMirror2,nawroth/CodeMirror,vanloswang/CodeMirror,Ermlab/CodeMirror,ssxxue/CodeMirror,Aliccer/CodeMirror,rustemferreira/CodeMirror,hccampos/CodeMirror,loopspace/CodeMirror,Aliccer/CodeMirror,skylarkcob/CodeMirror,manderson23/CodeMirror,EasonYi/CodeMirror,camellhf/CodeMirror,hackmdio/CodeMirror,jkaplon/CodeMirror,gkoberger/CodeMirror,jayaprabhakar/CodeMirror,sgoo/CodeMirror,buchslava/CodeMirror,karthikeyansam/CodeMirror,karthikeyansam/CodeMirror,axter/CodeMirror,TechnicalPursuit/CodeMirror,agendor/CodeMirror,ashmind/CodeMirror,mightyguava/CodeMirror,DustinH/CodeMirror,qweasd1/CodeMirror,Navaneethsen/CodeMirror,gkoberger/CodeMirror,pjkui/CodeMirror,mihailik/CodeMirror,ssxxue/CodeMirror,rrandom/CodeMirror,rasata/CodeMirror,sekcheong/CodeMirror,wingify/CodeMirror,amshali/CodeMirror,rustemferreira/CodeMirror,apatawari/CodeMirror,agendor/CodeMirror,crazy4chrissi/CodeMirror,kerabromsmu/CodeMirror,symbla/CodeMirror,schanzer/CodeMirror,grzegorzmazur/CodeMirror,ZombieHippie/CodeMirror,dudb/CodeMirror,thomasjm/CodeMirror,NeZaMy/CodeMirror2,bocharsky-bw/CodeMirror,cintiamh/CodeMirror,jessegrosjean/CodeMirror,Navaneethsen/CodeMirror,symbla/CodeMirror,antimatter15/CodeMirror,systay/CodeMirror,vanloswang/CodeMirror,NumbersInternational/CodeMirror,morrisonwudi/CodeMirror,mtaran-google/CodeMirror,mihailik/CodeMirror,Dominator008/CodeMirror,tpphu/CodeMirror,mizchi/CodeMirror,kevinushey/CodeMirror,ashmind/CodeMirror,mizchi/CodeMirror,fmoliveira/CodeMirror,djadmin/CodeMirror,mtaran-google/CodeMirror,kangkot/CodeMirror,trumanliu/CodeMirror,Allenice/CodeMirror,wingify/CodeMirror,shiren/CodeMirror,nightwing/CodeMirror,sekcheong/CodeMirror,bgrins/CodeMirror,wbinnssmith/CodeMirror,bfrohs/CodeMirror,isdampe/CodeMirror,joshterrell805-historic/CodeMirror,ksanaforge/CodeMirror,dperetti/CodeMirror,hccampos/CodeMirror,ksanaforge/CodeMirror,melpon/CodeMirror,dperetti/CodeMirror,alur/CodeMirror,r7kamura/CodeMirror,ThebingServices/CodeMirror,Jisuanke/CodeMirror,belph/CodeMirror,pinbe/CodeMirror,d0liver/CodeMirror,NumbersInternational/CodeMirror,morrisonwudi/CodeMirror,wbinnssmith/CodeMirror,pjkui/CodeMirror,bluesh55/CodeMirror,codio/CodeMirror,kerabromsmu/CodeMirror,Icenium/CodeMirror,SidPresse/CodeMirror,skylarkcob/CodeMirror,michaelerobertsjr/CodeMirror,AlanWasTaken/codemirror,hccampos/CodeMirror,dbarnett/CodeMirror,mightyguava/CodeMirror,schanzer/CodeMirror,karevn/CodeMirror,jessegrosjean/CodeMirror,davidpham87/CodeMirror,isdampe/CodeMirror,NumbersInternational/CodeMirror,jessegrosjean/CodeMirror,kevinushey/CodeMirror,trumanliu/CodeMirror,happibum/CodeMirror-main,agendor/CodeMirror,shiren/CodeMirror,crazy4chrissi/CodeMirror,amshali/CodeMirror,thomasjm/CodeMirror,tpphu/CodeMirror,alur/CodeMirror,nightwing/CodeMirror,skylarkcob/CodeMirror,sourcelair/CodeMirror,webida/CodeMirror,kuangyeheng/CodeMirror,bluesh55/CodeMirror,alur/CodeMirror,vincentwoo/CodeMirror,qweasd1/CodeMirror,rasata/CodeMirror,elisee/CodeMirror,xeronith/CodeMirror,ficristo/CodeMirror,Jisuanke/CodeMirror,sanyaade-iot/CodeMirror,kuangyeheng/CodeMirror,Icenium/CodeMirror,AlanWasTaken/codemirror,sanyaade-iot/CodeMirror,increpare/CodeMirror,camellhf/CodeMirror,jkaplon/CodeMirror,systay/CodeMirror,melpon/CodeMirror,grzegorzmazur/CodeMirror,cintiamh/CodeMirror,InternetGuru/CodeMirror,flyskyko/CodeMirror,ZombieHippie/CodeMirror,EasonYi/CodeMirror,pabloferz/CodeMirror,bfrohs/CodeMirror,mightyguava/CodeMirror,buchslava/CodeMirror,Allenice/CodeMirror,cintiamh/CodeMirror,philuchansky/CodeMirror,dbarnett/CodeMirror,hackmdio/CodeMirror,INTELOGIE/CodeMirror,loopspace/CodeMirror,tpphu/CodeMirror,NeZaMy/CodeMirror2,qiankun007/CodeMirror,elisee/CodeMirror,anthonygego/CodeMirror,EasonYi/CodeMirror,michaelerobertsjr/CodeMirror,buchslava/CodeMirror,happibum/CodeMirror-main,trumanliu/CodeMirror,vincentwoo/CodeMirror,TechnicalPursuit/CodeMirror,joshterrell805-historic/CodeMirror,bgrins/CodeMirror,ejgallego/CodeMirror,gkoberger/CodeMirror,bluesh55/CodeMirror,symbla/CodeMirror,pinbe/CodeMirror,djadmin/CodeMirror,ejgallego/CodeMirror,d0liver/CodeMirror,KamranMackey/CodeMirror,AlanWasTaken/codemirror,increpare/CodeMirror,abdelouahabb/CodeMirror,antimatter15/CodeMirror,GerHobbelt/CodeMirror2,shiren/CodeMirror,rasata/CodeMirror,Aliccer/CodeMirror,qweasd1/CodeMirror