optifine
optifine copied to clipboard
[Bug Report] Can't set keybinds to certain keys
Description of Issue
Attempting to set any keybind to shift, control, or alt (mouse buttons are fine) does not register the input and doesn't allow the keybind to be set to those buttons. I've seen a handful of bugs pertaining to this issue for 1.18, and that they were solved, however the issue remains in 1.20.1.
Steps to Reproduce
- Launch Forge version 47.2.0 for Minecraft 1.20.1
- Install OptiFine_1.20.1_HD_U_I6 in the mods folder
- Open key bind menu
- Attempt to set any control to shift, control, or alt
OptiFine Version
OptiFine_1.20.1_HD_U_I6
Installation Method
Installed as a mod along side Forge
Fabric/Forge Version
47.2.0
Can confirm this behavior is present. The keybind cannot be unselected once shift, alt, or ctrl is set. I've updated the issue to only include relevant information.
OptiFine_1.20.1_HD_U_I6 is compatible with Forge 47.2.18 and with it the keybinds work correctly. It looks like Forge 47.2.10 has added some keybind changes which are not backwards compatible and this makes problems with the older 47.2.0:
- 47.2.10 Rework KeyModifiers system to properly allow keybinds to be triggered when multiple modifiers are pressed.
Fix setting keybinds whel using keyboard inputs to select the menu. Closes #9793
- 47.2.9 Fix KeyModifiers not being properly taken into account. Closes #9806
Relevant: https://github.com/MinecraftForge/MinecraftForge/issues/9793 https://github.com/MinecraftForge/MinecraftForge/issues/9806