From 3c509ab5644bccd56ab72af3c265110345f79aec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Mon, 12 Aug 2024 00:56:39 +0800 Subject: [PATCH] . --- LunaTranslator/LunaTranslator/gui/showword.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LunaTranslator/LunaTranslator/gui/showword.py b/LunaTranslator/LunaTranslator/gui/showword.py index 5aff6bc5..1a63c562 100644 --- a/LunaTranslator/LunaTranslator/gui/showword.py +++ b/LunaTranslator/LunaTranslator/gui/showword.py @@ -348,7 +348,7 @@ class AnkiWindow(QWidget): @threader def simulate_key(self, i): try: - keystring = globalconfig["ankiconnect"]["simulate_key"][i]["keystring"] + keystring = globalconfig["ankiconnect"]["simulate_key"][str(i)]["keystring"] except: return if not keystring: