Fix ToggleableKeyBinding differences to vanilla. (#7338)

This commit is contained in:
Take Weiland authored and GitHub committed 2020-09-23 15:10:01 -07:00
1 parent b9b17d8331
commit 37be3aff2d
4 files changed
+24 -1

No files matched your search

@@ -55,6 +55,11 @@ public interface IForgeKeybinding
void setKeyModifierAndCode(KeyModifier keyModifier, InputMappings.Input keyCode);
default boolean isConflictContextAndModifierActive()
{
return getKeyConflictContext().isActive() && getKeyModifier().isActive(getKeyConflictContext());
}
/**
* Returns true when one of the bindings' key codes conflicts with the other's modifier.
*/