mirror of
https://github.com/zulip/zulip.git
synced 2025-11-19 22:19:48 +00:00
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:
@@ -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 &&
|
||||
|
||||
Reference in New Issue
Block a user