emoji_picker: Stop propagating enter keypress to message.

Similar to emoji_picker.process_keypress, process_enter_while_filtering
should have a stopPropagation.
This commit is contained in:
Aman Agrawal 2023-11-03 06:32:55 +00:00 committed by Tim Abbott
parent 9ebb3f06b3
commit c2d45e4cf7
1 changed files with 1 additions and 0 deletions

View File

@ -309,6 +309,7 @@ function is_status_emoji(emoji) {
function process_enter_while_filtering(e) {
if (keydown_util.is_enter_event(e)) {
e.preventDefault();
e.stopPropagation();
const $first_emoji = get_rendered_emoji(0, 0);
if ($first_emoji) {
if (is_composition($first_emoji)) {