fix(default-options): reorder setKey and setKeyModifier calls to preserve ALT modifiers
This commit is contained in:
parent
b542b0fbe4
commit
d6f492abbb
1 changed files with 1 additions and 1 deletions
|
|
@ -121,9 +121,9 @@ public class KeyMappingDefaultsHandler implements DefaultOptionsHandler {
|
|||
if ((!((DefaultOptionsKeyMapping) keyMapping).defaultoptions$wasSeen() || isCurrentOnOriginalDefault)
|
||||
&& !defaultKeyMapping.matches(keyMapping)) {
|
||||
|
||||
keyMapping.m_90848_(keyMapping.m_90861_());
|
||||
KeyModifier defaultKeyModifier = PlatformBindings.INSTANCE.getDefaultKeyModifier(keyMapping);
|
||||
PlatformBindings.INSTANCE.setKeyModifier(keyMapping, defaultKeyModifier);
|
||||
keyMapping.m_90848_(keyMapping.m_90861_());
|
||||
++bindingsOverridden;
|
||||
DefaultOptions.logger.debug("Key mapping {} was previously on the original default. Configuring to new default.", (Object) keyMapping.m_90860_());
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Reference in a new issue