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:
Waseem Daher 2013-02-13 15:50:06 -05:00
parent f0be25ec9d
commit f37f6b2d37
1 changed files with 0 additions and 10 deletions

View File

@ -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));