mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-14 04:12:18 +02:00
easy fix, all tests passed
This commit is contained in:
parent
c1e9e0c691
commit
9c4f04fe46
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user