focus textarea when clicking on speed emoji option

master
Aevann 2023-01-28 13:36:42 +02:00
parent abb702506f
commit ba5bfc2462
1 changed files with 1 additions and 0 deletions

View File

@ -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