Enable/disable from buttons on all input events (not just key events)
Enable/disable from buttons on all input events (not just key events)

Fixes #1836

bigsurge/gitlabhq,julianengel/gitlabhq,michaKFromParis/gitlabhqold,fpgentil/gitlabhq,DanielZhangQingLong/gitlabhq,TheWatcher/gitlabhq,cui-liqiang/gitlab-ce,louahola/gitlabhq,michaKFromParis/gitlabhq,8thcolor/testing-public-gitlabhq,rhels/gitlabhq,sakishum/gitlabhq,martinma4/gitlabhq,jairzh/gitlabhq-sfdc,rfeese/gitlab-ce,LUMC/gitlabhq,aaronsnyder/gitlabhq,fantasywind/gitlabhq,chrrrles/nodeflab,neiljbrookes/glab,lvfeng1130/gitlabhq,rhels/gitlabhq,adaiguoguo/gitlab_globalserarch,H3Chief/gitlabhq,lvfeng1130/gitlabhq,akumetsuv/gitlab,8thcolor/rubyconfau2015-sadr,OlegGirko/gitlab-ce,hacsoc/gitlabhq,Tyrael/gitlabhq,windymid/test2,dreampet/gitlab,dukex/gitlabhq,Devin001/gitlabhq,ibiart/gitlabhq,1ed/gitlabhq,rebecamendez/gitlabhq,fearenales/gitlabhq,manfer/gitlabhq,mr-dxdy/gitlabhq,SkyWei/gitlabhq,dreampet/gitlab,salipro4ever/gitlabhq,ZeoAlliance/gitlabhq,mente/gitlabhq,8thcolor/rubyconfau2015-sadr,per-garden/gitlabhq,LytayTOUCH/gitlabhq,zBMNForks/gitlabhq,axilleas/gitlabhq,akumetsuv/gitlab,it33/gitlabhq,joalmeid/gitlabhq,rumpelsepp/gitlabhq,joalmeid/gitlabhq,allistera/gitlabhq,icedwater/gitlabhq,delkyd/gitlabhq,manfer/gitlabhq,LUMC/gitlabhq,nguyen-tien-mulodo/gitlabhq,Tyrael/gitlabhq,dreampet/gitlab,wangcan2014/gitlabhq,OlegGirko/gitlab-ce,it33/gitlabhq,chadyred/gitlabhq,chenrui2014/gitlabhq,kitech/gitlabhq,DanielZhangQingLong/gitlabhq,icedwater/gitlabhq,dwrensha/gitlabhq,fgbreel/gitlabhq,fscherwi/gitlabhq,gopeter/gitlabhq,screenpages/gitlabhq,Kambda/mobbr-gitlabhq,liyakun/gitlabhq,bladealslayer/gitlabhq,t-zuehlsdorff/gitlabhq,lbt/gitlabhq,mmkassem/gitlabhq,nmav/gitlabhq,salipro4ever/gitlabhq,icedwater/gitlabhq,jaepyoung/gitlabhq,chadyred/gitlabhq,mathstuf/gitlabhq,akumetsuv/gitlab,johnmyqin/gitlabhq,allysonbarros/gitlabhq,LytayTOUCH/gitlabhq,theonlydoo/gitlabhq,t-zuehlsdorff/gitlabhq,yfaizal/gitlabhq,jaepyoung/gitlabhq,mathstuf/gitlabhq,pupaxxo/gitlabhq,riyad/gitlabhq,yulchitaj/TEST3,chenrui2014/gitlabhq,rebecamendez/gitlabhq,123Haynes/gitlabhq,michaKFromParis/gitlabhqold,nuecho/gitlabhq,xuvw/gitlabhq,atomaka/gitlabhq,0x20h/gitlabhq,duduribeiro/gitlabhq,salipro4ever/gitlabhq,dwrensha/gitlabhq,daiyu/gitlab-zh,LytayTOUCH/gitlabhq,k4zzk/gitlabhq,yonglehou/gitlabhq,tim-hoff/gitlabhq,yulchitaj/TEST3,kemenaran/gitlabhq,mmkassem/gitlabhq,SVArago/gitlabhq,CodeCantor/gitlabhq,8thcolor/testing-public-gitlabhq,yulchitaj/TEST3,jrjang/gitlab-ce,NARKOZ/gitlabhq,fscherwi/gitlabhq,neiljbrookes/glab,sakishum/gitlabhq,jaepyoung/gitlabhq,mavimo/gitlabhq,DanielZhangQingLong/gitlabhq,szechyjs/gitlabhq,luzhongyang/gitlabhq,ferdinandrosario/gitlabhq,pkallberg/tjenare,sonalkr132/gitlabhq,louahola/gitlabhq,NKMR6194/gitlabhq,martinma4/gitlabhq,bozaro/gitlabhq,Tyrael/gitlabhq,luzhongyang/gitlabhq,xuvw/gitlabhq,Datacom/gitlabhq,pjknkda/gitlabhq,Razer6/gitlabhq,theodi/gitlabhq,since2014/gitlabhq,bozaro/gitlabhq,fgbreel/gitlabhq,Datacom/gitlabhq,nuecho/gitlabhq,tempbottle/gitlabhq,Devin001/gitlabhq,sue445/gitlabhq,delkyd/gitlabhq,chadyred/gitlabhq,H3Chief/gitlabhq,MauriceMohlek/gitlabhq,tim-hoff/gitlabhq,tempbottle/gitlabhq,dvrylc/gitlabhq,liyakun/gitlabhq,yatish27/gitlabhq,kotaro-dev/gitlab-6-9,fearenales/gitlabhq,0x20h/gitlabhq,atomaka/gitlabhq,t-zuehlsdorff/gitlabhq,zrbsprite/gitlabhq,k4zzk/gitlabhq,michaKFromParis/gitlabhq,ttasanen/gitlabhq,ordiychen/gitlabhq,Telekom-PD/gitlabhq,nguyen-tien-mulodo/gitlabhq,SVArago/gitlabhq,ArthurHoaro/Public-GitLab,hacsoc/gitlabhq,Burick/gitlabhq,1ed/gitlabhq,flashbuckets/gitlabhq,martijnvermaat/gitlabhq,cui-liqiang/gitlab-ce,fpgentil/gitlabhq,8thcolor/rubyconfau2015-sadr,julianengel/gitlabhq,mrb/gitlabhq,pulkit21/gitlabhq,ordiychen/gitlabhq,yfaizal/gitlabhq,jirutka/gitlabhq,phinfonet/mobbr-gitlabhq,ikappas/gitlabhq,szechyjs/gitlabhq,mr-dxdy/gitlabhq,cui-liqiang/gitlab-ce,vjustov/gitlabhq,WSDC-NITWarangal/gitlabhq,fgbreel/gitlabhq,iiet/iiet-git,OlegGirko/gitlab-ce,jirutka/gitlabhq,cinderblock/gitlabhq,sonalkr132/gitlabhq,jaepyoung/gitlabhq,wangcan2014/gitlabhq,Burick/gitlabhq,revaret/gitlabhq,8thcolor/testing-public-gitlabhq,jairzh/gitlabhq-sfdc,per-garden/gitlabhq,stanhu/gitlabhq,Keystion/gitlabhq,bbodenmiller/gitlabhq,iiet/iiet-git,rhels/gitlabhq,sue445/gitlabhq,pkgr/gitlabhq,xuvw/gitlabhq,jairzh/gitlabhq-sfdc,hzy001/gitlabhq,yonglehou/gitlabhq,yulchitaj/TEST3,bozaro/gitlabhq,chenrui2014/gitlabhq,NARKOZ/gitlabhq,k4zzk/gitlabhq,since2014/gitlabhq,axilleas/gitlabhq,kitech/gitlabhq,ferdinandrosario/gitlabhq,WSDC-NITWarangal/gitlabhq,since2014/gitlabhq,OtkurBiz/gitlabhq,123Haynes/gitlabhq,since2014/gitlabhq,martijnvermaat/gitlabhq,dplarson/gitlabhq,stoplightio/gitlabhq,rebecamendez/gitlabhq,darkrasid/gitlabhq,ttasanen/gitlabhq,whluwit/gitlabhq,fendoudeqingchunhh/gitlabhq,axilleas/gitlabhq,pupaxxo/gitlabhq,openwide-java/gitlabhq,Burick/gitlabhq,stanhu/gitlabhq,eliasp/gitlabhq,rfeese/gitlab-ce,yfaizal/gitlabhq,tim-hoff/gitlabhq,flashbuckets/gitlabhq,SkyWei/gitlabhq,iiet/iiet-git,TheWatcher/gitlabhq,ayufan/gitlabhq,vjustov/gitlabhq,sue445/gitlabhq,adaiguoguo/gitlab_globalserarch,hzy001/gitlabhq,copystudy/gitlabhq,michaKFromParis/sparkslab,rumpelsepp/gitlabhq,michaKFromParis/sparkslab,hzy001/gitlabhq,jrjang/gitlabhq,Datacom/gitlabhq,MauriceMohlek/gitlabhq,8thcolor/eurucamp2014-htdsadr,youprofit/gitlabhq,Soullivaneuh/gitlabhq,ayufan/gitlabhq,rumpelsepp/gitlabhq,cinderblock/gitlabhq,pulkit21/gitlabhq,fendoudeqingchunhh/gitlabhq,jrjang/gitlabhq,sideci-sample/sideci-sample-gitlabhq,initiummedia/gitlabhq,8thcolor/eurucamp2014-htdsadr,windymid/test2,fscherwi/gitlabhq,OtkurBiz/gitlabhq,duduribeiro/gitlabhq,H3Chief/gitlabhq,zrbsprite/gitlabhq,theodi/gitlabhq,larryli/gitlabhq,TheWatcher/gitlabhq,daiyu/gitlab-zh,per-garden/gitlabhq,Razer6/gitlabhq,mente/gitlabhq,Razer6/gitlabhq,darkrasid/gitlabhq,martinma4/gitlabhq,ZeoAlliance/gitlabhq,MauriceMohlek/gitlabhq,Exeia/gitlabhq,htve/GitlabForChinese,TheWatcher/gitlabhq,cui-liqiang/gitlab-ce,ikappas/gitlabhq,ayufan/gitlabhq,jrjang/gitlab-ce,dyon/gitlab,achako/gitlabhq,bigsurge/gitlabhq,cncodog/gitlab,childbamboo/gitlabhq,dukex/gitlabhq,yfaizal/gitlabhq,rebecamendez/gitlabhq,julianengel/gitlabhq,gopeter/gitlabhq,vjustov/gitlabhq,copystudy/gitlabhq,pjknkda/gitlabhq,lbt/gitlabhq,ayufan/gitlabhq,liyakun/gitlabhq,michaKFromParis/gitlabhqold,wangcan2014/gitlabhq,cncodog/gitlab,aaronsnyder/gitlabhq,Keystion/gitlabhq,pulkit21/gitlabhq,eliasp/gitlabhq,dreampet/gitlab,darkrasid/gitlabhq,betabot7/gitlabhq,louahola/gitlabhq,dwrensha/gitlabhq,inetfuture/gitlab-tweak,folpindo/gitlabhq,mavimo/gitlabhq,johnmyqin/gitlabhq,stoplightio/gitlabhq,ttasanen/gitlabhq,openwide-java/gitlabhq,inetfuture/gitlab-tweak,riyad/gitlabhq,larryli/gitlabhq,childbamboo/gitlabhq,mathstuf/gitlabhq,Datacom/gitlabhq,LUMC/gitlabhq,Razer6/gitlabhq,stoplightio/gitlabhq,flashbuckets/gitlabhq,nmav/gitlabhq,childbamboo/gitlabhq,sonalkr132/gitlabhq,Burick/gitlabhq,NuLL3rr0r/gitlabhq,daiyu/gitlab-zh,sakishum/gitlabhq,fendoudeqingchunhh/gitlabhq,ksoichiro/gitlabhq,DanielZhangQingLong/gitlabhq,kitech/gitlabhq,bozaro/gitlabhq,sekcheong/gitlabhq,allistera/gitlabhq,ibiart/gitlabhq,johnmyqin/gitlabhq,hacsoc/gitlabhq,fgbreel/gitlabhq,williamherry/gitlabhq,per-garden/gitlabhq,iiet/iiet-git,fearenales/gitlabhq,koreamic/gitlabhq,julianengel/gitlabhq,williamherry/gitlabhq,Kambda/mobbr-gitlabhq,1ed/gitlabhq,cinderblock/gitlabhq,Kambda/Mobbr,yuyue2013/ss,folpindo/gitlabhq,joalmeid/gitlabhq,stellamiranda/mobbr-gitlabhq,dukex/gitlabhq,bigsurge/gitlabhq,hq804116393/gitlabhq,michaKFromParis/sparkslab,koreamic/gitlabhq,dvrylc/gitlabhq,Exeia/gitlabhq,htve/GitlabForChinese,fendoudeqingchunhh/gitlabhq,kemenaran/gitlabhq,shinexiao/gitlabhq,betabot7/gitlabhq,jrjang/gitlabhq,CodeCantor/gitlabhq,zBMNForks/gitlabhq,fantasywind/gitlabhq,nguyen-tien-mulodo/gitlabhq,mr-dxdy/gitlabhq,adaiguoguo/gitlab_globalserarch,bbodenmiller/gitlabhq,wangcan2014/gitlabhq,ibiart/gitlabhq,SkyWei/gitlabhq,ngpestelos/gitlabhq,jairzh/gitlabhq-sfdc,sue445/gitlabhq,yatish27/gitlabhq,cinderblock/gitlabhq,mathstuf/gitlabhq,eliasp/gitlabhq,zrbsprite/gitlabhq,jirutka/gitlabhq,achako/gitlabhq,sekcheong/gitlabhq,Kambda/Mobbr,adaiguoguo/gitlab_globalserarch,tk23/gitlabhq,martijnvermaat/gitlabhq,salipro4ever/gitlabhq,mavimo/gitlabhq,SVArago/gitlabhq,jvanbaarsen/gitlabhq,tk23/gitlabhq,Telekom-PD/gitlabhq,fscherwi/gitlabhq,lvfeng1130/gitlabhq,theodi/gitlabhq,williamherry/gitlabhq,stanhu/gitlabhq,pkallberg/tjenare,allysonbarros/gitlabhq,whluwit/gitlabhq,initiummedia/gitlabhq,MauriceMohlek/gitlabhq,openwide-java/gitlabhq,Devin001/gitlabhq,luzhongyang/gitlabhq,sakishum/gitlabhq,michaKFromParis/gitlabhq,gopeter/gitlabhq,yama07/gitlabhq,dvrylc/gitlabhq,Keystion/gitlabhq,screenpages/gitlabhq,gorgee/gitlabhq,darkrasid/gitlabhq,yama07/gitlabhq,delkyd/gitlabhq,Tyrael/gitlabhq,hq804116393/gitlabhq,initiummedia/gitlabhq,mavimo/gitlabhq,theonlydoo/gitlabhq,123Haynes/gitlabhq,LytayTOUCH/gitlabhq,nuecho/gitlabhq,revaret/gitlabhq,vjustov/gitlabhq,youprofit/gitlabhq,screenpages/gitlabhq,NuLL3rr0r/gitlabhq,joalmeid/gitlabhq,jvanbaarsen/gitlabhq,Soullivaneuh/gitlabhq,kitech/gitlabhq,larryli/gitlabhq,pkgr/gitlabhq,rhels/gitlabhq,hq804116393/gitlabhq,NARKOZ/gitlabhq,Telekom-PD/gitlabhq,Exeia/gitlabhq,michaKFromParis/gitlabhqold,betabot7/gitlabhq,mrb/gitlabhq,eliasp/gitlabhq,jrjang/gitlab-ce,pjknkda/gitlabhq,yama07/gitlabhq,sideci-sample/sideci-sample-gitlabhq,pjknkda/gitlabhq,mente/gitlabhq,Exeia/gitlabhq,riyad/gitlabhq,zrbsprite/gitlabhq,mrb/gitlabhq,yuyue2013/ss,yatish27/gitlabhq,jirutka/gitlabhq,initiummedia/gitlabhq,yonglehou/gitlabhq,sekcheong/gitlabhq,8thcolor/eurucamp2014-htdsadr,mr-dxdy/gitlabhq,kemenaran/gitlabhq,sonalkr132/gitlabhq,cncodog/gitlab,liyakun/gitlabhq,SkyWei/gitlabhq,kemenaran/gitlabhq,tempbottle/gitlabhq,szechyjs/gitlabhq,ikappas/gitlabhq,Soullivaneuh/gitlabhq,allistera/gitlabhq,dvrylc/gitlabhq,allysonbarros/gitlabhq,folpindo/gitlabhq,duduribeiro/gitlabhq,ferdinandrosario/gitlabhq,aaronsnyder/gitlabhq,daiyu/gitlab-zh,kotaro-dev/gitlab-6-9,icedwater/gitlabhq,ksoichiro/gitlabhq,martinma4/gitlabhq,SVArago/gitlabhq,szechyjs/gitlabhq,larryli/gitlabhq,ZeoAlliance/gitlabhq,chenrui2014/gitlabhq,CodeCantor/gitlabhq,allysonbarros/gitlabhq,gopeter/gitlabhq,LUMC/gitlabhq,goeun/myRepo,martijnvermaat/gitlabhq,johnmyqin/gitlabhq,dyon/gitlab,fearenales/gitlabhq,pkallberg/tjenare,flashbuckets/gitlabhq,OtkurBiz/gitlabhq,achako/gitlabhq,bbodenmiller/gitlabhq,tk23/gitlabhq,copystudy/gitlabhq,revaret/gitlabhq,dwrensha/gitlabhq,fantasywind/gitlabhq,lbt/gitlabhq,WSDC-NITWarangal/gitlabhq,windymid/test2,ikappas/gitlabhq,NARKOZ/gitlabhq,shinexiao/gitlabhq,screenpages/gitlabhq,it33/gitlabhq,theonlydoo/gitlabhq,Keystion/gitlabhq,whluwit/gitlabhq,nmav/gitlabhq,ksoichiro/gitlabhq,nguyen-tien-mulodo/gitlabhq,kotaro-dev/gitlab-6-9,ArthurHoaro/Public-GitLab,copystudy/gitlabhq,stoplightio/gitlabhq,shinexiao/gitlabhq,ArthurHoaro/Public-GitLab,bladealslayer/gitlabhq,Kambda/Mobbr,bigsurge/gitlabhq,fpgentil/gitlabhq,goeun/myRepo,tk23/gitlabhq,WSDC-NITWarangal/gitlabhq,manfer/gitlabhq,pulkit21/gitlabhq,OtkurBiz/gitlabhq,NKMR6194/gitlabhq,ngpestelos/gitlabhq,chadyred/gitlabhq,yuyue2013/ss,aaronsnyder/gitlabhq,mente/gitlabhq,Kambda/mobbr-gitlabhq,NuLL3rr0r/gitlabhq,neiljbrookes/glab,ordiychen/gitlabhq,chrrrles/nodeflab,chrrrles/nodeflab,youprofit/gitlabhq,jrjang/gitlabhq,williamherry/gitlabhq,fantasywind/gitlabhq,tim-hoff/gitlabhq,htve/GitlabForChinese,michaKFromParis/sparkslab,jvanbaarsen/gitlabhq,zBMNForks/gitlabhq,goeun/myRepo,delkyd/gitlabhq,sideci-sample/sideci-sample-gitlabhq,ordiychen/gitlabhq,yama07/gitlabhq,ngpestelos/gitlabhq,theonlydoo/gitlabhq,tempbottle/gitlabhq,youprofit/gitlabhq,phinfonet/mobbr-gitlabhq,yuyue2013/ss,duduribeiro/gitlabhq,ngpestelos/gitlabhq,gorgee/gitlabhq,mrb/gitlabhq,revaret/gitlabhq,zBMNForks/gitlabhq,Telekom-PD/gitlabhq,openwide-java/gitlabhq,lvfeng1130/gitlabhq,pkgr/gitlabhq,OlegGirko/gitlab-ce,dplarson/gitlabhq,dyon/gitlab,stanhu/gitlabhq,stellamiranda/mobbr-gitlabhq,fpgentil/gitlabhq,whluwit/gitlabhq,hq804116393/gitlabhq,axilleas/gitlabhq,yonglehou/gitlabhq,sekcheong/gitlabhq,stellamiranda/mobbr-gitlabhq,hzy001/gitlabhq,Soullivaneuh/gitlabhq,NKMR6194/gitlabhq,louahola/gitlabhq,ttasanen/gitlabhq,allistera/gitlabhq,luzhongyang/gitlabhq,H3Chief/gitlabhq,cncodog/gitlab,mmkassem/gitlabhq,folpindo/gitlabhq,t-zuehlsdorff/gitlabhq,gorgee/gitlabhq,phinfonet/mobbr-gitlabhq,NKMR6194/gitlabhq,nmav/gitlabhq,theodi/gitlabhq,bbodenmiller/gitlabhq,rumpelsepp/gitlabhq,Devin001/gitlabhq,rfeese/gitlab-ce,k4zzk/gitlabhq,hacsoc/gitlabhq,jvanbaarsen/gitlabhq,dplarson/gitlabhq,bladealslayer/gitlabhq,childbamboo/gitlabhq,dplarson/gitlabhq,inetfuture/gitlab-tweak,manfer/gitlabhq,it33/gitlabhq,0x20h/gitlabhq,shinexiao/gitlabhq,dukex/gitlabhq,gorgee/gitlabhq,mmkassem/gitlabhq,atomaka/gitlabhq,pupaxxo/gitlabhq,rfeese/gitlab-ce,jrjang/gitlab-ce,ksoichiro/gitlabhq,michaKFromParis/gitlabhq,htve/GitlabForChinese,yatish27/gitlabhq,koreamic/gitlabhq,koreamic/gitlabhq,ferdinandrosario/gitlabhq