Immediately read input on "input" event
Immediately read input on "input" event

To prevent race conditions where an API call triggers a
resetInput before the new input has been read.

Closes #2975

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