mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +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 &&
|
||||
|
@@ -107,7 +107,7 @@ message_lists.current = {
|
||||
selected_row() {
|
||||
const $row = $.create("selected-row-stub");
|
||||
$row.set_find_results(".message-actions-menu-button", ["<menu-button-stub>"]);
|
||||
$row.set_find_results(".emoji-message-control-button-container", {
|
||||
$row.set_find_results(".message_controls .emoji-message-control-button-container", {
|
||||
closest: () => ({css: () => "none"}),
|
||||
});
|
||||
return $row;
|
||||
|
Reference in New Issue
Block a user