optifine icon indicating copy to clipboard operation
optifine copied to clipboard

[Bug Report] Can't set keybinds to certain keys

Open S33R-OF-PYR3 opened this issue 1 year ago • 2 comments

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

  1. Launch Forge version 47.2.0 for Minecraft 1.20.1
  2. Install OptiFine_1.20.1_HD_U_I6 in the mods folder
  3. Open key bind menu
  4. 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

S33R-OF-PYR3 avatar Jan 29 '24 04:01 S33R-OF-PYR3

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.

Jiingy avatar Mar 05 '24 20:03 Jiingy

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

sp614x avatar Mar 15 '24 13:03 sp614x