diff --git a/Scripts/Python/xOptionsMenu.py b/Scripts/Python/xOptionsMenu.py index 855dd7e327..64722ec7a5 100644 --- a/Scripts/Python/xOptionsMenu.py +++ b/Scripts/Python/xOptionsMenu.py @@ -1776,9 +1776,9 @@ def LoadKeyMap(self): km.bindKeyToConsoleCommand(mappedKey, controlCode) else: controlStr = km.convertControlCodeToString(controlCode) - keys = mappedKey.split("$") - PtDebugPrint(f"xOptionsMenu.LoadKeyMap(): Binding {keys=} to {controlStr=}", level=kWarningLevel) - km.bindKey(*keys, controlStr) + key1, _, key2 = mappedKey.partition("$") + PtDebugPrint(f"xOptionsMenu.LoadKeyMap(): Binding {key1=} & {key2=} to {controlStr=}", level=kWarningLevel) + km.bindKey(key1, key2, controlStr) def IsThereACover(self,bookHtml): # search the bookhtml string looking for a cover