Fix Quick Open async-related bugs & performance problems: - #1855 (Typing quickly in Go to Definition goes to wrong location on   Enter) -- moved Enter/Esc handling to keyup and added async delay to   parallel how letter keys are handled; register keyup handler earlier so   it can block Enter from being processed by Smart Autocomplete (which we   did before by killing the UI before the keyup could arrive) - Remaining bit of #1627 (Quick Open doesn't scroll based on prepopulated   text if opened via menu) -- moved code from keyup to new   _handleShowResults() method - Slow performance when typing qucikly in big files like codemirror.js --   added staleness check in _filterCallback()
Fix Quick Open async-related bugs & performance problems:
- #1855 (Typing quickly in Go to Definition goes to wrong location on
  Enter) -- moved Enter/Esc handling to keyup and added async delay to
  parallel how letter keys are handled; register keyup handler earlier so
  it can block Enter from being processed by Smart Autocomplete (which we
  did before by killing the UI before the keyup could arrive)
- Remaining bit of #1627 (Quick Open doesn't scroll based on prepopulated
  text if opened via menu) -- moved code from keyup to new
  _handleShowResults() method
- Slow performance when typing qucikly in big files like codemirror.js --
  added staleness check in _filterCallback()

Also, some code cleanup:
- move code that didn't need to be in keyup into _filterCallback()
- remove keydown handler now that it's unneeded
- add more docs on event ordering, etc.

mjurczyk/brackets,gcommetti/brackets,Rajat-dhyani/brackets,fashionsun/brackets,fvntr/brackets,marcominetti/brackets,fashionsun/brackets,mcanthony/brackets,iamchathu/brackets,FTG-003/brackets,siddharta1337/brackets,y12uc231/brackets,wakermahmud/brackets,xantage/brackets,pomadgw/brackets,Wikunia/brackets,macdg/brackets,riselabs-ufba/RiPLE-HC-ExperimentalData,resir014/brackets,revi/brackets,2youyouo2/cocoslite,netlams/brackets,riselabs-ufba/RiPLE-HC-ExperimentalData,flukeout/brackets,CapeSepias/brackets,sophiacaspar/brackets,ChaofengZhou/brackets,pratts/brackets,sedge/nimble,brianjking/brackets,Live4Code/brackets,phillipalexander/brackets,gwynndesign/brackets,Fcmam5/brackets,massimiliano76/brackets,malinkie/brackets,quasto/ArduinoStudio,Fcmam5/brackets,keir-rex/brackets,nucliweb/brackets,MantisWare/brackets,ChaofengZhou/brackets,rlugojr/brackets,StephanieMak/brackets,shal1y/brackets,chambej/brackets,rafaelstz/brackets,L0g1k/brackets,fronzec/brackets,weebygames/brackets,eric-stanley/brackets,ScalaInc/brackets,mozilla/brackets,fcjailybo/brackets,busykai/brackets,Real-Currents/brackets,xantage/brackets,quasto/ArduinoStudio,L0g1k/quickfire-old,bidle/brackets,zhukaixy/brackets,fronzec/brackets,weebygames/brackets,dangkhue27/brackets,alexkid64/brackets,robertkarlsson/brackets,riselabs-ufba/RiPLE-HC-ExperimentalData,andrewnc/brackets,ls2uper/brackets,chrismoulton/brackets,gwynndesign/brackets,CapeSepias/brackets,brianjking/brackets,fvntr/brackets,shiyamkumar/brackets,wakermahmud/brackets,iamchathu/brackets,chambej/brackets,phillipalexander/brackets,jacobnash/brackets,uwsd/brackets,srhbinion/brackets,wesleifreitas/brackets,NKcentinel/brackets,agreco/brackets,show0017/brackets,MarcelGerber/brackets,andrewnc/brackets,ls2uper/brackets,ashleygwilliams/brackets,m66n/brackets,thehogfather/brackets,stowball/brackets,petetnt/brackets,ecwebservices/brackets,sgupta7857/brackets,bidle/brackets,L0g1k/quickfire-old,2youyouo2/cocoslite,malinkie/brackets,m66n/brackets,lovewitty/brackets,petetnt/brackets,falcon1812/brackets,fcjailybo/brackets,gupta-tarun/brackets,michaeljayt/brackets,shiyamkumar/brackets,dangkhue27/brackets,ralic/brackets,resir014/brackets,lovewitty/brackets,ficristo/brackets,nucliweb/brackets,andrewnc/brackets,gwynndesign/brackets,chrisle/brackets,Mosoc/brackets,ecwebservices/brackets,youprofit/brackets,MarcelGerber/brackets,bidle/brackets,CapeSepias/brackets,fastrde/brackets,youprofit/brackets,Denisov21/brackets,ryanackley/tailor,humphd/brackets,Free-Technology-Guild/brackets,michaeljayt/brackets,baig/brackets,mozilla/brackets,Live4Code/brackets,ricciozhang/brackets,fashionsun/brackets,CapeSepias/brackets,pkdevbox/brackets,mjurczyk/brackets,zaggino/brackets-electron,baig/brackets,MahadevanSrinivasan/brackets,jacobnash/brackets,ryanackley/tailor,goldcase/brackets,cdot-brackets-extensions/nimble-htmlLint,srinivashappy/brackets,adobe/brackets,raygervais/brackets,FTG-003/brackets,Pomax/brackets,Real-Currents/brackets,chambej/brackets,82488059/brackets,ecwebservices/brackets,humphd/brackets,NickersF/brackets,veveykocute/brackets,ashleygwilliams/brackets,NickersF/brackets,SidBala/brackets,chambej/brackets,ecwebservices/brackets,richmondgozarin/brackets,flukeout/brackets,wangjun/brackets,Cartman0/brackets,pratts/brackets,MahadevanSrinivasan/brackets,chambej/brackets,veveykocute/brackets,nucliweb/brackets,youprofit/brackets,fcjailybo/brackets,thr0w/brackets,fabricadeaplicativos/brackets,ashleygwilliams/brackets,ropik/brackets,chrismoulton/brackets,flukeout/brackets,cdot-brackets-extensions/nimble-htmlLint,RobertJGabriel/brackets,TylerL-uxai/brackets,JordanTheriault/brackets,xantage/brackets,Live4Code/brackets,cosmosgenius/brackets,rafaelstz/brackets,albertinad/brackets,dtcom/MyPSDBracket,Jonavin/brackets,goldcase/brackets,ralic/brackets,RamirezWillow/brackets,Cartman0/brackets,jiimaho/brackets,youprofit/brackets,jacobnash/brackets,2youyouo2/cocoslite,chinnyannieb/brackets,amrelnaggar/brackets,arduino-org/ArduinoStudio,adobe/brackets,quasto/ArduinoStudio,michaeljayt/brackets,dtcom/MyPSDBracket,gcommetti/brackets,eric-stanley/brackets,GHackAnonymous/brackets,gupta-tarun/brackets,chinnyannieb/brackets,jiawenbo/brackets,thr0w/brackets,zaggino/brackets-electron,Andrey-Pavlov/brackets,resir014/brackets,shal1y/brackets,arduino-org/ArduinoStudio,phillipalexander/brackets,ryanackley/tailor,2youyouo2/cocoslite,IAmAnubhavSaini/brackets,revi/brackets,StephanieMak/brackets,mat-mcloughlin/brackets,kilroy23/brackets,sprintr/brackets,ricciozhang/brackets,82488059/brackets,sprintr/brackets,mat-mcloughlin/brackets,IAmAnubhavSaini/brackets,Jonavin/brackets,NGHGithub/brackets,Wikunia/brackets,dangkhue27/brackets,lovewitty/brackets,chinnyannieb/brackets,jiimaho/brackets,thr0w/brackets,agreco/brackets,82488059/brackets,Pomax/brackets,mjurczyk/brackets,ChaofengZhou/brackets,show0017/brackets,robertkarlsson/brackets,kolipka/brackets,Wikunia/brackets,chinnyannieb/brackets,pkdevbox/brackets,richmondgozarin/brackets,MahadevanSrinivasan/brackets,lovewitty/brackets,humphd/brackets,thr0w/brackets,alexkid64/brackets,NickersF/brackets,macdg/brackets,abhisekp/brackets,macdg/brackets,ficristo/brackets,NGHGithub/brackets,MantisWare/brackets,cosmosgenius/brackets,weebygames/brackets,jiimaho/brackets,arduino-org/ArduinoStudio,cdot-brackets-extensions/nimble-htmlLint,jmarkina/brackets,riselabs-ufba/RiPLE-HC-ExperimentalData,karevn/brackets,SebastianBoyd/sebastianboyd.github.io-OLD,RobertJGabriel/brackets,michaeljayt/brackets,dtcom/MyPSDBracket,iamchathu/brackets,ls2uper/brackets,cosmosgenius/brackets,gideonthomas/brackets,uwsd/brackets,wakermahmud/brackets,fastrde/brackets,zLeonjo/brackets,ropik/brackets,m66n/brackets,Pomax/brackets,brianjking/brackets,Lojsan123/brackets,NGHGithub/brackets,pratts/brackets,NKcentinel/brackets,xantage/brackets,Jonavin/brackets,SidBala/brackets,Free-Technology-Guild/brackets,wesleifreitas/brackets,mcanthony/brackets,dangkhue27/brackets,jacobnash/brackets,chrisle/brackets,karevn/brackets,show0017/brackets,pomadgw/brackets,zLeonjo/brackets,amrelnaggar/brackets,fvntr/brackets,Lojsan123/brackets,adobe/brackets,simon66/brackets,pratts/brackets,robertkarlsson/brackets,ChaofengZhou/brackets,keir-rex/brackets,hanmichael/brackets,shiyamkumar/brackets,StephanieMak/brackets,Th30/brackets,revi/brackets,ggusman/present,srinivashappy/brackets,gcommetti/brackets,goldcase/brackets,udhayam/brackets,andrewnc/brackets,kilroy23/brackets,simon66/brackets,alicoding/nimble,ForkedRepos/brackets,fabricadeaplicativos/brackets,fabricadeaplicativos/brackets,shal1y/brackets,sedge/nimble,wakermahmud/brackets,zaggino/brackets-electron,keir-rex/brackets,emanziano/brackets,thehogfather/brackets,No9/brackets,SebastianBoyd/sebastianboyd.github.io-OLD,lunode/brackets,baig/brackets,mjurczyk/brackets,wangjun/brackets,Rajat-dhyani/brackets,tan9/brackets,SebastianBoyd/sebastianboyd.github.io-OLD,Jonavin/brackets,youprofit/brackets,amrelnaggar/brackets,ricciozhang/brackets,gideonthomas/brackets,Denisov21/brackets,Th30/brackets,gcommetti/brackets,busykai/brackets,goldcase/brackets,tan9/brackets,L0g1k/quickfire-old,karevn/brackets,marcominetti/brackets,JordanTheriault/brackets,alicoding/nimble,GHackAnonymous/brackets,Real-Currents/brackets,quasto/ArduinoStudio,Lojsan123/brackets,MarcelGerber/brackets,iamchathu/brackets,NGHGithub/brackets,TylerL-uxai/brackets,chrisle/brackets,TylerL-uxai/brackets,Cartman0/brackets,lunode/brackets,chinnyannieb/brackets,82488059/brackets,thehogfather/brackets,sophiacaspar/brackets,wesleifreitas/brackets,keir-rex/brackets,srhbinion/brackets,Real-Currents/brackets,pkdevbox/brackets,srinivashappy/brackets,Fcmam5/brackets,Jonavin/brackets,raygervais/brackets,sgupta7857/brackets,FTG-003/brackets,rlugojr/brackets,IAmAnubhavSaini/brackets,stowball/brackets,emanziano/brackets,emanziano/brackets,hanmichael/brackets,fashionsun/brackets,TylerL-uxai/brackets,ricciozhang/brackets,ralic/brackets,wakermahmud/brackets,MahadevanSrinivasan/brackets,Denisov21/brackets,fastrde/brackets,simon66/brackets,rlugojr/brackets,massimiliano76/brackets,L0g1k/brackets,zLeonjo/brackets,albertinad/brackets,abhisekp/brackets,michaeljayt/brackets,jiawenbo/brackets,Pomax/brackets,fronzec/brackets,sgupta7857/brackets,riselabs-ufba/RiPLE-HC-ExperimentalData,gwynndesign/brackets,JordanTheriault/brackets,brianjking/brackets,jiawenbo/brackets,petetnt/brackets,jiimaho/brackets,ecwebservices/brackets,zhukaixy/brackets,udhayam/brackets,emanziano/brackets,amrelnaggar/brackets,RamirezWillow/brackets,IAmAnubhavSaini/brackets,Lojsan123/brackets,m66n/brackets,uwsd/brackets,Mosoc/brackets,richmondgozarin/brackets,zaggino/brackets-electron,albertinad/brackets,simon66/brackets,rafaelstz/brackets,FTG-003/brackets,alexkid64/brackets,Rynaro/brackets,ficristo/brackets,jmarkina/brackets,massimiliano76/brackets,fabricadeaplicativos/brackets,riselabs-ufba/RiPLE-HC-ExperimentalData,fcjailybo/brackets,MahadevanSrinivasan/brackets,zhukaixy/brackets,goldcase/brackets,Cartman0/brackets,eric-stanley/brackets,TylerL-uxai/brackets,L0g1k/quickfire-old,treejames/brackets,netlams/brackets,SidBala/brackets,treejames/brackets,MantisWare/brackets,netlams/brackets,bidle/brackets,humphd/brackets,raygervais/brackets,Rynaro/brackets,y12uc231/brackets,mjurczyk/brackets,RobertJGabriel/brackets,adrianhartanto0/brackets,zhukaixy/brackets,adrianhartanto0/brackets,eric-stanley/brackets,thehogfather/brackets,82488059/brackets,StephanieMak/brackets,sgupta7857/brackets,Lojsan123/brackets,busykai/brackets,mcanthony/brackets,adrianhartanto0/brackets,Th30/brackets,NickersF/brackets,Rynaro/brackets,L0g1k/brackets,treejames/brackets,veveykocute/brackets,Cartman0/brackets,cosmosgenius/brackets,phillipalexander/brackets,RobertJGabriel/brackets,jiawenbo/brackets,NickersF/brackets,udhayam/brackets,mat-mcloughlin/brackets,gideonthomas/brackets,Live4Code/brackets,SebastianBoyd/sebastianboyd.github.io-OLD,netlams/brackets,CapeSepias/brackets,NKcentinel/brackets,sophiacaspar/brackets,abhisekp/brackets,mozilla/brackets,keir-rex/brackets,falcon1812/brackets,m66n/brackets,Rajat-dhyani/brackets,tan9/brackets,veveykocute/brackets,rlugojr/brackets,netlams/brackets,treejames/brackets,fvntr/brackets,ScalaInc/brackets,fcjailybo/brackets,chrismoulton/brackets,Rajat-dhyani/brackets,arduino-org/ArduinoStudio,falcon1812/brackets,zhukaixy/brackets,Th30/brackets,RamirezWillow/brackets,ralic/brackets,falcon1812/brackets,andrewnc/brackets,xantage/brackets,srhbinion/brackets,ForkedRepos/brackets,JordanTheriault/brackets,Fcmam5/brackets,y12uc231/brackets,ggusman/present,mcanthony/brackets,kolipka/brackets,Rynaro/brackets,fronzec/brackets,Andrey-Pavlov/brackets,2youyouo2/cocoslite,L0g1k/brackets,baig/brackets,iamchathu/brackets,shiyamkumar/brackets,GHackAnonymous/brackets,stowball/brackets,y12uc231/brackets,uwsd/brackets,sprintr/brackets,dangkhue27/brackets,JordanTheriault/brackets,fastrde/brackets,gupta-tarun/brackets,wesleifreitas/brackets,gideonthomas/brackets,No9/brackets,uwsd/brackets,gupta-tarun/brackets,shal1y/brackets,FTG-003/brackets,ls2uper/brackets,zaggino/brackets-electron,macdg/brackets,agreco/brackets,phillipalexander/brackets,karevn/brackets,Denisov21/brackets,SebastianBoyd/sebastianboyd.github.io-OLD,malinkie/brackets,lunode/brackets,albertinad/brackets,cdot-brackets-extensions/nimble-htmlLint,resir014/brackets,kolipka/brackets,pomadgw/brackets,ficristo/brackets,humphd/brackets,jmarkina/brackets,falcon1812/brackets,robertkarlsson/brackets,raygervais/brackets,nucliweb/brackets,mcanthony/brackets,stowball/brackets,ricciozhang/brackets,amrelnaggar/brackets,weebygames/brackets,Fcmam5/brackets,ashleygwilliams/brackets,ScalaInc/brackets,flukeout/brackets,revi/brackets,kilroy23/brackets,rafaelstz/brackets,GHackAnonymous/brackets,NGHGithub/brackets,mozilla/brackets,alicoding/nimble,revi/brackets,ropik/brackets,chrismoulton/brackets,Mosoc/brackets,adobe/brackets,hanmichael/brackets,quasto/ArduinoStudio,siddharta1337/brackets,pomadgw/brackets,robertkarlsson/brackets,gideonthomas/brackets,fabricadeaplicativos/brackets,ForkedRepos/brackets,busykai/brackets,kolipka/brackets,sedge/nimble,bidle/brackets,jiawenbo/brackets,nucliweb/brackets,rafaelstz/brackets,siddharta1337/brackets,brianjking/brackets,flukeout/brackets,ggusman/present,fashionsun/brackets,thehogfather/brackets,wangjun/brackets,fronzec/brackets,sgupta7857/brackets,petetnt/brackets,adrianhartanto0/brackets,GHackAnonymous/brackets,pomadgw/brackets,udhayam/brackets,emanziano/brackets,rlugojr/brackets,busykai/brackets,ryanackley/tailor,thr0w/brackets,chrisle/brackets,karevn/brackets,abhisekp/brackets,lovewitty/brackets,Wikunia/brackets,tan9/brackets,Mosoc/brackets,massimiliano76/brackets,zLeonjo/brackets,mat-mcloughlin/brackets,jmarkina/brackets,ScalaInc/brackets,sprintr/brackets,ScalaInc/brackets,L0g1k/quickfire-old,ForkedRepos/brackets,ls2uper/brackets,siddharta1337/brackets,jiimaho/brackets,chrismoulton/brackets,mozilla/brackets,ficristo/brackets,treejames/brackets,wesleifreitas/brackets,Rynaro/brackets,malinkie/brackets,agreco/brackets,richmondgozarin/brackets,wangjun/brackets,pkdevbox/brackets,sedge/nimble,alexkid64/brackets,fastrde/brackets,y12uc231/brackets,Real-Currents/brackets,StephanieMak/brackets,pkdevbox/brackets,srhbinion/brackets,SidBala/brackets,udhayam/brackets,eric-stanley/brackets,ggusman/present,MarcelGerber/brackets,RamirezWillow/brackets,massimiliano76/brackets,chrisle/brackets,simon66/brackets,ashleygwilliams/brackets,resir014/brackets,arduino-org/ArduinoStudio,gcommetti/brackets,Mosoc/brackets,albertinad/brackets,SidBala/brackets,richmondgozarin/brackets,zaggino/brackets-electron,srinivashappy/brackets,Rajat-dhyani/brackets,kilroy23/brackets,NKcentinel/brackets,Free-Technology-Guild/brackets,Andrey-Pavlov/brackets,shal1y/brackets,alicoding/nimble,kolipka/brackets,No9/brackets,IAmAnubhavSaini/brackets,jacobnash/brackets,Free-Technology-Guild/brackets,adobe/brackets,Andrey-Pavlov/brackets,srhbinion/brackets,kilroy23/brackets,MantisWare/brackets,siddharta1337/brackets,MarcelGerber/brackets,Andrey-Pavlov/brackets,sedge/nimble,lunode/brackets,shiyamkumar/brackets,abhisekp/brackets,Wikunia/brackets,weebygames/brackets,jmarkina/brackets,RobertJGabriel/brackets,macdg/brackets,petetnt/brackets,ForkedRepos/brackets,dtcom/MyPSDBracket,show0017/brackets,fvntr/brackets,ropik/brackets,alexkid64/brackets,NKcentinel/brackets,hanmichael/brackets,No9/brackets,baig/brackets,ralic/brackets,sophiacaspar/brackets,wangjun/brackets,pratts/brackets,Pomax/brackets,sprintr/brackets,zLeonjo/brackets,gupta-tarun/brackets,Live4Code/brackets,No9/brackets,veveykocute/brackets,lunode/brackets,Real-Currents/brackets,Denisov21/brackets,RamirezWillow/brackets,malinkie/brackets,MantisWare/brackets,Free-Technology-Guild/brackets,hanmichael/brackets,Th30/brackets,ChaofengZhou/brackets,adrianhartanto0/brackets,srinivashappy/brackets,sophiacaspar/brackets,tan9/brackets,raygervais/brackets,stowball/brackets