hotkey: Specify reactions toggle to message controls.

Sometimes this selector was catching a second
`emoji-message-control-button-container` from an emoji reaction,
which was only caught once we started using `util.the`. This
change avoids catching that irrelevant element.
This commit is contained in:
Evy Kassirer
2025-10-09 21:02:30 -07:00
committed by Tim Abbott
parent 898b544ba4
commit 38e7f11259
2 changed files with 4 additions and 2 deletions

View File

@@ -1378,7 +1378,9 @@ function process_hotkey(e: JQuery.KeyDownEvent, hotkey: Hotkey): boolean {
// ':': open reactions to message
case "toggle_reactions_popover": {
const $row = message_lists.current.selected_row();
const $emoji_icon = $row.find(".emoji-message-control-button-container");
const $emoji_icon = $row.find(
".message_controls .emoji-message-control-button-container",
);
let emoji_picker_reference;
if (
$emoji_icon?.length !== 0 &&