mirror of https://github.com/zulip/zulip.git
Don't show popover on right-click.
I experimented briefly with window.getSelection to try to determine if any text was highlighted (and then we could've done something like "Don't popover if text is highlighted"), but I couldn't quickly get it to work in a robust way, so for now I am removing the feature. (imported from commit 76048b8fd070675b480a2d29e2c8d7d6018633ec)
This commit is contained in:
parent
f0be25ec9d
commit
f37f6b2d37
|
@ -816,16 +816,6 @@ $(function () {
|
|||
show_actions_popover(this, rows.id(row));
|
||||
});
|
||||
|
||||
$("#main_div").on("contextmenu", ".message_row, .recipient_row", function (e) {
|
||||
// Let the browser handle right-click on links in messages;
|
||||
// otherwise we take over
|
||||
if ($(e.target).is('a'))
|
||||
return;
|
||||
e.preventDefault();
|
||||
|
||||
show_actions_popover(this, rows.id($(this)));
|
||||
});
|
||||
|
||||
$("#home").on("click", ".narrows_by_recipient", function (e) {
|
||||
var row = $(this).closest(".recipient_row");
|
||||
narrow.by_recipient(rows.id(row));
|
||||
|
|
Loading…
Reference in New Issue