easy fix, all tests passed

pull/685/head
Greenlamp 2024-05-14 18:23:35 +02:00
parent c1e9e0c691
commit 9c4f04fe46
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ export function swapCurrentKeys(config: InterfaceConfig, settingName, pressedBut
const nextKey = deepCopy(newBind); const nextKey = deepCopy(newBind);
if (prevKey.key === nextKey.key) { if (prevKey.key === nextKey.key) {
// special case when back to back and not enough info to get back to previous button // 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.custom[prevKey.key] = prevKey.from.action;
config.icons[prevKey.key] = prevKey.from.icon; config.icons[prevKey.key] = prevKey.from.icon;