Modifiers are unset on events for the modifier key itself
Modifiers are unset on events for the modifier key itself

This patch removes modifiers when processing key events for the
particular modifier key. For example, previously a Shift keypress
would register as a Shift + Shift modifier event.

This would cause issues when a modifier key as the action key in
the input map, because unpresses of the modifier key don't match as
matching inputs for that action. E.g. if Shift is used as an action,
the stored action event is Shift + Shift modifier (as indicated
in the editor as "Shift + Shift". The unpress event does not have the
Shift modifier set, so the event of unpressing Shift + no modifier
doesn't match the action which has the modifier set.

This patch removes the shift modifier on just pressing the Shift
key down, so the action event is registered as just Shift with
no modifier (as indicated in the editor as "Shift"), which matches
the unpress event.

mamarilmanson/godot,RebelliousX/Go_Dot,karolgotowala/godot,hitjim/godot,quabug/godot,groud/godot,HatiEth/godot,OpenSocialGames/godot,HatiEth/godot,iap-mutant/godot,RebelliousX/Go_Dot,jejung/godot,teamblubee/godot,zj8487/godot,xiaoyanit/godot,vnen/godot,Marqin/godot,hipgraphics/godot,BastiaanOlij/godot,vnen/godot,tomreyn/godot,didier-v/godot,gau-veldt/godot,zj8487/godot,ZuBsPaCe/godot,NateWardawg/godot,kimsunzun/godot,mamarilmanson/godot,okamstudio/godot,kimsunzun/godot,shackra/godot,vastcharade/godot,HatiEth/godot,groud/godot,Zylann/godot,lietu/godot,RebelliousX/Go_Dot,supriyantomaftuh/godot,morrow1nd/godot,opmana/godot,karolgotowala/godot,Marqin/godot,lietu/godot,sh95119/godot,okamstudio/godot,josempans/godot,DStomtom/godot,godotengine/godot,BogusCurry/godot,xiaoyanit/godot,okamstudio/godot,n-pigeon/godot,blackwc/godot,BastiaanOlij/godot,groud/godot,wardw/godot,a12n/godot,vnen/godot,didier-v/godot,RebelliousX/Go_Dot,Brickcaster/godot,ex/godot,jackmakesthings/godot,liuyucoder/godot,mikica1986vee/Godot_android_tegra_fallback,ZuBsPaCe/godot,guilhermefelipecgs/godot,opmana/godot,jackmakesthings/godot,pkowal1982/godot,mrezai/godot,okamstudio/godot,Paulloz/godot,OpenSocialGames/godot,morrow1nd/godot,davidalpha/godot,BastiaanOlij/godot,buckle2000/godot,OpenSocialGames/godot,mikica1986vee/godot,morrow1nd/godot,youprofit/godot,davidalpha/godot,gcbeyond/godot,JoshuaGrams/godot,exabon/godot,torgartor21/godot,Shockblast/godot,TheBoyThePlay/godot,Faless/godot,vastcharade/godot,est31/godot,mikica1986vee/godot,vkbsb/godot,a12n/godot,BoDonkey/godot,mikica1986vee/Godot_android_tegra_fallback,godotengine/godot,FateAce/godot,torgartor21/godot,sanikoyes/godot,honix/godot,liuyucoder/godot,xiaoyanit/godot,HatiEth/godot,wardw/godot,mikica1986vee/GodotArrayEditorStuff,youprofit/godot,agusbena/godot,didier-v/godot,Hodes/godot,ricpelo/godot,mikica1986vee/godot,RandomShaper/godot,ianholing/godot,shackra/godot,ianholing/godot,teamblubee/godot,ricpelo/godot,cpascal/godot,Hodes/godot,Shockblast/godot,tomreyn/godot,OpenSocialGames/godot,karolgotowala/godot,dreamsxin/godot,mamarilmanson/godot,zj8487/godot,marynate/godot,cpascal/godot,NateWardawg/godot,dreamsxin/godot,zicklag/godot,BastiaanOlij/godot,Valentactive/godot,lietu/godot,ricpelo/godot,okamstudio/godot,didier-v/godot,mcanders/godot,vkbsb/godot,sergicollado/godot,JoshuaGrams/godot,BoDonkey/godot,zicklag/godot,TheBoyThePlay/godot,FullMeta/godot,BogusCurry/godot,HatiEth/godot,TheBoyThePlay/godot,honix/godot,vastcharade/godot,marynate/godot,sh95119/godot,lietu/godot,zicklag/godot,sanikoyes/godot,FullMeta/godot,MarianoGnu/godot,iap-mutant/godot,exabon/godot,Valentactive/godot,serafinfernandez/godot,BoDonkey/godot,shackra/godot,davidalpha/godot,pkowal1982/godot,ageazrael/godot,marynate/godot,blackwc/godot,BoDonkey/godot,serafinfernandez/godot,Max-Might/godot,pkowal1982/godot,ZuBsPaCe/godot,teamblubee/godot,pkowal1982/godot,kimsunzun/godot,NateWardawg/godot,karolgotowala/godot,NateWardawg/godot,sergicollado/godot,BogusCurry/godot,Brickcaster/godot,guilhermefelipecgs/godot,mikica1986vee/Godot_android_tegra_fallback,didier-v/godot,okamstudio/godot,MarianoGnu/godot,exabon/godot,kimsunzun/godot,rollenrolm/godot,FullMeta/godot,DmitriySalnikov/godot,sh95119/godot,wardw/godot,pixelpicosean/my-godot-2.1,liuyucoder/godot,buckle2000/godot,vkbsb/godot,Valentactive/godot,shackra/godot,davidalpha/godot,lietu/godot,ficoos/godot,sergicollado/godot,BogusCurry/godot,ricpelo/godot,liuyucoder/godot,xiaoyanit/godot,rollenrolm/godot,BoDonkey/godot,wardw/godot,mrezai/godot,mikica1986vee/GodotArrayEditorStuff,tomreyn/godot,zicklag/godot,Marqin/godot,MarianoGnu/godot,godotengine/godot,vkbsb/godot,supriyantomaftuh/godot,quabug/godot,Paulloz/godot,rollenrolm/godot,pixelpicosean/my-godot-2.1,ianholing/godot,gcbeyond/godot,ricpelo/godot,Shockblast/godot,TheHX/godot,crr0004/godot,davidalpha/godot,BoDonkey/godot,ex/godot,morrow1nd/godot,mikica1986vee/GodotArrayEditorStuff,davidalpha/godot,ricpelo/godot,NateWardawg/godot,teamblubee/godot,OpenSocialGames/godot,JoshuaGrams/godot,huziyizero/godot,Faless/godot,FullMeta/godot,supriyantomaftuh/godot,wardw/godot,akien-mga/godot,ex/godot,supriyantomaftuh/godot,serafinfernandez/godot,ianholing/godot,serafinfernandez/godot,quabug/godot,Shockblast/godot,firefly2442/godot,torgartor21/godot,youprofit/godot,mamarilmanson/godot,iap-mutant/godot,Marqin/godot,youprofit/godot,Marqin/godot,hitjim/godot,Zylann/godot,BastiaanOlij/godot,akien-mga/godot,Paulloz/godot,vnen/godot,pixelpicosean/my-godot-2.1,JoshuaGrams/godot,liuyucoder/godot,okamstudio/godot,mamarilmanson/godot,agusbena/godot,iap-mutant/godot,RandomShaper/godot,vnen/godot,iap-mutant/godot,okamstudio/godot,serafinfernandez/godot,hitjim/godot,DStomtom/godot,opmana/godot,vkbsb/godot,MarianoGnu/godot,DStomtom/godot,davidalpha/godot,ageazrael/godot,hipgraphics/godot,jjdicharry/godot,a12n/godot,exabon/godot,marynate/godot,jejung/godot,xiaoyanit/godot,OpenSocialGames/godot,zj8487/godot,iap-mutant/godot,karolgotowala/godot,Faless/godot,TheBoyThePlay/godot,sanikoyes/godot,crr0004/godot,vastcharade/godot,TheBoyThePlay/godot,BastiaanOlij/godot,pixelpicosean/my-godot-2.1,MarianoGnu/godot,mikica1986vee/godot,morrow1nd/godot,ageazrael/godot,akien-mga/godot,buckle2000/godot,DmitriySalnikov/godot,NateWardawg/godot,blackwc/godot,mikica1986vee/Godot_android_tegra_fallback,vnen/godot,davidalpha/godot,RandomShaper/godot,hitjim/godot,xiaoyanit/godot,opmana/godot,mikica1986vee/GodotArrayEditorStuff,gau-veldt/godot,ricpelo/godot,crr0004/godot,didier-v/godot,liuyucoder/godot,MrMaidx/godot,RandomShaper/godot,NateWardawg/godot,n-pigeon/godot,Paulloz/godot,ZuBsPaCe/godot,mrezai/godot,jejung/godot,shackra/godot,josempans/godot,sergicollado/godot,torgartor21/godot,mikica1986vee/GodotArrayEditorStuff,jjdicharry/godot,guilhermefelipecgs/godot,sh95119/godot,n-pigeon/godot,ricpelo/godot,HatiEth/godot,DmitriySalnikov/godot,sanikoyes/godot,karolgotowala/godot,agusbena/godot,cpascal/godot,firefly2442/godot,blackwc/godot,agusbena/godot,DmitriySalnikov/godot,serafinfernandez/godot,cpascal/godot,DmitriySalnikov/godot,karolgotowala/godot,supriyantomaftuh/godot,blackwc/godot,mrezai/godot,cpascal/godot,a12n/godot,crr0004/godot,mrezai/godot,tomreyn/godot,ZuBsPaCe/godot,mikica1986vee/Godot_android_tegra_fallback,josempans/godot,OpenSocialGames/godot,jjdicharry/godot,supriyantomaftuh/godot,dreamsxin/godot,quabug/godot,serafinfernandez/godot,blackwc/godot,jejung/godot,zj8487/godot,Zylann/godot,mamarilmanson/godot,ficoos/godot,godotengine/godot,sergicollado/godot,ZuBsPaCe/godot,FateAce/godot,crr0004/godot,mamarilmanson/godot,ianholing/godot,mcanders/godot,torgartor21/godot,TheBoyThePlay/godot,groud/godot,hipgraphics/godot,mikica1986vee/godot,exabon/godot,ficoos/godot,BoDonkey/godot,xiaoyanit/godot,jjdicharry/godot,akien-mga/godot,honix/godot,lietu/godot,xiaoyanit/godot,sh95119/godot,vastcharade/godot,ageazrael/godot,RandomShaper/godot,Faless/godot,shackra/godot,okamstudio/godot,iap-mutant/godot,honix/godot,azurvii/godot,davidalpha/godot,jjdicharry/godot,pixelpicosean/my-godot-2.1,Zylann/godot,honix/godot,Max-Might/godot,torgartor21/godot,dreamsxin/godot,huziyizero/godot,josempans/godot,ficoos/godot,iap-mutant/godot,teamblubee/godot,azurvii/godot,sh95119/godot,lietu/godot,HatiEth/godot,DStomtom/godot,FullMeta/godot,n-pigeon/godot,Faless/godot,est31/godot,n-pigeon/godot,kimsunzun/godot,groud/godot,cpascal/godot,Shockblast/godot,huziyizero/godot,mcanders/godot,jjdicharry/godot,xiaoyanit/godot,gcbeyond/godot,Brickcaster/godot,cpascal/godot,godotengine/godot,vastcharade/godot,a12n/godot,Paulloz/godot,sh95119/godot,wardw/godot,jackmakesthings/godot,karolgotowala/godot,quabug/godot,est31/godot,sh95119/godot,ex/godot,hitjim/godot,vkbsb/godot,mikica1986vee/GodotArrayEditorStuff,ex/godot,BoDonkey/godot,HatiEth/godot,teamblubee/godot,ZuBsPaCe/godot,MrMaidx/godot,vastcharade/godot,mikica1986vee/GodotArrayEditorStuff,a12n/godot,liuyucoder/godot,vastcharade/godot,huziyizero/godot,akien-mga/godot,agusbena/godot,mcanders/godot,firefly2442/godot,zj8487/godot,blackwc/godot,youprofit/godot,MarianoGnu/godot,marynate/godot,jjdicharry/godot,FateAce/godot,firefly2442/godot,DStomtom/godot,ex/godot,ageazrael/godot,hipgraphics/godot,sergicollado/godot,RebelliousX/Go_Dot,mikica1986vee/godot,mcanders/godot,akien-mga/godot,wardw/godot,Brickcaster/godot,mikica1986vee/godot,BoDonkey/godot,gcbeyond/godot,hipgraphics/godot,MarianoGnu/godot,Shockblast/godot,hipgraphics/godot,josempans/godot,pkowal1982/godot,BastiaanOlij/godot,jejung/godot,tomreyn/godot,iap-mutant/godot,jackmakesthings/godot,TheHX/godot,Hodes/godot,supriyantomaftuh/godot,mikica1986vee/godot,Brickcaster/godot,Faless/godot,est31/godot,cpascal/godot,est31/godot,youprofit/godot,serafinfernandez/godot,josempans/godot,didier-v/godot,kimsunzun/godot,TheHX/godot,crr0004/godot,Paulloz/godot,Valentactive/godot,OpenSocialGames/godot,vastcharade/godot,hitjim/godot,sergicollado/godot,pkowal1982/godot,youprofit/godot,hitjim/godot,mrezai/godot,BogusCurry/godot,akien-mga/godot,zj8487/godot,hipgraphics/godot,dreamsxin/godot,exabon/godot,sergicollado/godot,guilhermefelipecgs/godot,Marqin/godot,sanikoyes/godot,marynate/godot,mikica1986vee/Godot_android_tegra_fallback,firefly2442/godot,pkowal1982/godot,hitjim/godot,Shockblast/godot,FullMeta/godot,marynate/godot,serafinfernandez/godot,BogusCurry/godot,sanikoyes/godot,gau-veldt/godot,crr0004/godot,sh95119/godot,ricpelo/godot,Brickcaster/godot,youprofit/godot,a12n/godot,Valentactive/godot,RebelliousX/Go_Dot,mikica1986vee/Godot_android_tegra_fallback,ianholing/godot,quabug/godot,HatiEth/godot,azurvii/godot,HatiEth/godot,mikica1986vee/godot,godotengine/godot,teamblubee/godot,Zylann/godot,didier-v/godot,serafinfernandez/godot,karolgotowala/godot,azurvii/godot,ex/godot,rollenrolm/godot,Faless/godot,kimsunzun/godot,gau-veldt/godot,vkbsb/godot,FullMeta/godot,youprofit/godot,TheBoyThePlay/godot,xiaoyanit/godot,OpenSocialGames/godot,Zylann/godot,JoshuaGrams/godot,Max-Might/godot,gcbeyond/godot,ficoos/godot,est31/godot,jackmakesthings/godot,cpascal/godot,Hodes/godot,ficoos/godot,mcanders/godot,DmitriySalnikov/godot,groud/godot,FullMeta/godot,jackmakesthings/godot,mikica1986vee/GodotArrayEditorStuff,n-pigeon/godot,davidalpha/godot,sergicollado/godot,DStomtom/godot,marynate/godot,wardw/godot,a12n/godot,mamarilmanson/godot,jejung/godot,Max-Might/godot,agusbena/godot,hipgraphics/godot,mikica1986vee/Godot_android_tegra_fallback,torgartor21/godot,NateWardawg/godot,Max-Might/godot,blackwc/godot,crr0004/godot,ianholing/godot,supriyantomaftuh/godot,jackmakesthings/godot,dreamsxin/godot,guilhermefelipecgs/godot,Zylann/godot,azurvii/godot,ageazrael/godot,vastcharade/godot,guilhermefelipecgs/godot,mamarilmanson/godot,jjdicharry/godot,buckle2000/godot,RandomShaper/godot,Valentactive/godot,marynate/godot,hipgraphics/godot,cpascal/godot,Valentactive/godot,shackra/godot,dreamsxin/godot,MrMaidx/godot,teamblubee/godot,godotengine/godot,zj8487/godot,kimsunzun/godot,godotengine/godot,wardw/godot,liuyucoder/godot,guilhermefelipecgs/godot,BastiaanOlij/godot,FullMeta/godot,ianholing/godot,MrMaidx/godot,FateAce/godot,huziyizero/godot,JoshuaGrams/godot,josempans/godot,liuyucoder/godot,MarianoGnu/godot,lietu/godot,blackwc/godot,mikica1986vee/GodotArrayEditorStuff,gcbeyond/godot,n-pigeon/godot,ianholing/godot,FateAce/godot,mikica1986vee/GodotArrayEditorStuff,gau-veldt/godot,DmitriySalnikov/godot,marynate/godot,buckle2000/godot,shackra/godot,teamblubee/godot,honix/godot,Hodes/godot,opmana/godot,kimsunzun/godot,blackwc/godot,ex/godot,jjdicharry/godot,pkowal1982/godot,morrow1nd/godot,FullMeta/godot,gcbeyond/godot,Hodes/godot,hipgraphics/godot,a12n/godot,okamstudio/godot,BogusCurry/godot,TheHX/godot,mikica1986vee/godot,shackra/godot,RandomShaper/godot,torgartor21/godot,jjdicharry/godot,agusbena/godot,MrMaidx/godot,wardw/godot,DStomtom/godot,mrezai/godot,karolgotowala/godot,azurvii/godot,iap-mutant/godot,TheBoyThePlay/godot,shackra/godot,Zylann/godot,dreamsxin/godot,akien-mga/godot,quabug/godot,firefly2442/godot,didier-v/godot,hitjim/godot,sh95119/godot,DStomtom/godot,firefly2442/godot,torgartor21/godot,ianholing/godot,josempans/godot,ZuBsPaCe/godot,mrezai/godot,rollenrolm/godot,teamblubee/godot,torgartor21/godot,vnen/godot,quabug/godot,sanikoyes/godot,vnen/godot,TheHX/godot,guilhermefelipecgs/godot,zj8487/godot,BoDonkey/godot,FateAce/godot,sergicollado/godot,gcbeyond/godot,Valentactive/godot,didier-v/godot,mikica1986vee/Godot_android_tegra_fallback,firefly2442/godot,zicklag/godot,mamarilmanson/godot,supriyantomaftuh/godot,sanikoyes/godot,BogusCurry/godot,Brickcaster/godot,zj8487/godot,buckle2000/godot,quabug/godot,BogusCurry/godot,quabug/godot,Faless/godot,agusbena/godot,hitjim/godot,crr0004/godot,supriyantomaftuh/godot,jackmakesthings/godot,jackmakesthings/godot,Paulloz/godot,kimsunzun/godot,dreamsxin/godot,lietu/godot,TheBoyThePlay/godot,a12n/godot,liuyucoder/godot,crr0004/godot,zicklag/godot,vkbsb/godot,Shockblast/godot,Max-Might/godot,NateWardawg/godot,ricpelo/godot,OpenSocialGames/godot,DStomtom/godot,BogusCurry/godot,ageazrael/godot,lietu/godot,dreamsxin/godot,mikica1986vee/Godot_android_tegra_fallback,gcbeyond/godot,TheBoyThePlay/godot,youprofit/godot,MrMaidx/godot,DStomtom/godot,gcbeyond/godot,jackmakesthings/godot