From ba5bfc246264e37642e3a9a386bb9b48969ec662 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sat, 28 Jan 2023 13:36:42 +0200 Subject: [PATCH] focus textarea when clicking on speed emoji option --- files/assets/js/emoji_modal.js | 1 + 1 file changed, 1 insertion(+) diff --git a/files/assets/js/emoji_modal.js b/files/assets/js/emoji_modal.js index ba74b4778..869393bca 100644 --- a/files/assets/js/emoji_modal.js +++ b/files/assets/js/emoji_modal.js @@ -447,6 +447,7 @@ function populate_speed_emoji_modal(results, textbox) selecting = false; speed_carot_modal.style.display = "none"; textbox.value = textbox.value.replace(new RegExp(current_word+"(?=\\s|$)", "g"), `:${result}:`) + textbox.focus() markdown(textbox) }; // Pack