Jarlyk / JarlykMods

Various Risk of Rain 2 Mods
MIT License
6 stars 1 forks source link

Pressing shortcuts while in chat or in the game menu triggers events or errors #22

Closed ghost closed 4 years ago

ghost commented 4 years ago

Fixe ; bool isInChatBox = false; On.RoR2.UI.ChatBox.FocusInputField += (orig, self) => { orig(self); isInChatBox = true; }; On.RoR2.UI.ChatBox.UnfocusInputField += (orig, self) => { orig(self); isInChatBox = false; }; Then check isInChatBox after each GetKeyDown

Jarlyk commented 4 years ago

Fixed and will be in 1.0 release