From 33ccb2e6eff5dd4cebff9d3ce0dbe5b151cc435f Mon Sep 17 00:00:00 2001 From: Jack Date: Wed, 23 Jun 2021 19:11:45 +0100 Subject: [PATCH] fixed duplicate caret update to avoid caret jumping up on enter --- src/js/input-controller.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/js/input-controller.js b/src/js/input-controller.js index 6f595448e..5cb27b7c8 100644 --- a/src/js/input-controller.js +++ b/src/js/input-controller.js @@ -736,8 +736,7 @@ function handleAlpha(event) { TestUI.updateWordElement(!Config.blindMode); } } - - Caret.updatePosition(); + if (originalEvent.code !== "Enter") Caret.updatePosition(); } $(document).keyup((event) => {