From 4708a11448b8333ee4fa8920093cdec74f917210 Mon Sep 17 00:00:00 2001 From: Illia Harkusha Date: Sat, 24 Aug 2024 10:55:57 +0300 Subject: [PATCH] Anki v24.06+ back card side automatic swap fix - See [the discussion comment](https://github.com/anki-geo/ultimate-geography/discussions/649#discussioncomment-10433459) for the details --- src/media/experimental_assets/_ug-interactive_map_init.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/media/experimental_assets/_ug-interactive_map_init.js b/src/media/experimental_assets/_ug-interactive_map_init.js index 32d48b53..2c825bdc 100644 --- a/src/media/experimental_assets/_ug-interactive_map_init.js +++ b/src/media/experimental_assets/_ug-interactive_map_init.js @@ -165,7 +165,7 @@ if (typeof AnkiDroidJS !== "undefined") { showAnswer(); } else { - commonElements.hiddenTextarea.dispatchEvent(new KeyboardEvent("keypress", {code: "Enter"})); + commonElements.hiddenTextarea.dispatchEvent(new KeyboardEvent("keypress", {code: "Enter", key: "Enter"})); } }