From 9c4f04fe46362fc2bb03441b6999639511aca34c Mon Sep 17 00:00:00 2001 From: Greenlamp Date: Tue, 14 May 2024 18:23:35 +0200 Subject: [PATCH] easy fix, all tests passed --- src/configs/gamepad-utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/configs/gamepad-utils.ts b/src/configs/gamepad-utils.ts index 7835e8d88..514e906c9 100644 --- a/src/configs/gamepad-utils.ts +++ b/src/configs/gamepad-utils.ts @@ -100,7 +100,7 @@ export function swapCurrentKeys(config: InterfaceConfig, settingName, pressedBut const nextKey = deepCopy(newBind); if (prevKey.key === nextKey.key) { // special case when back to back and not enough info to get back to previous button - const toRestore = getKeyAndSettingNameFromCurrentKeysWithAction(config, prevKey.from.action); + const toRestore = getKeyAndSettingNameFromCurrentKeysWithAction(config, prevKey.from.action, settingName.includes("ALT_")); config.custom[prevKey.key] = prevKey.from.action; config.icons[prevKey.key] = prevKey.from.icon;