Skip to content

Commit

Permalink
Fix not being able to set keybindings when using keyboard navigation (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredlll08 authored Jun 26, 2024
1 parent bba0fd2 commit f302e7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion patches/net/minecraft/client/KeyboardHandler.java.patch
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
);
return;
}
+ } else if (p_90897_ == 0 /*GLFW_RELEASE*/ && this.minecraft.screen instanceof KeyBindsScreen)
+ } else if (p_90897_ == 0 /*GLFW_RELEASE*/ && this.minecraft.screen instanceof KeyBindsScreen && net.neoforged.neoforge.client.settings.KeyModifier.getActiveModifier() != net.neoforged.neoforge.client.settings.KeyModifier.NONE)
+ ((KeyBindsScreen)this.minecraft.screen).selectedKey = null; //Forge: Unset pure modifiers.
}

Expand Down

0 comments on commit f302e7e

Please sign in to comment.