mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-05-02 02:34:08 +02:00
Make middle click on tweet reply icon open the compose drawer
This commit is contained in:
parent
3326ad52ce
commit
a710cb9d4f
@ -595,6 +595,26 @@
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
//
|
||||||
|
// Block: Make middle click on tweet reply icon open the compose drawer.
|
||||||
|
//
|
||||||
|
app.delegate(".js-reply-action", "mousedown", function(e){
|
||||||
|
if (e.which === 2){
|
||||||
|
if ($("[data-drawer='compose']").hasClass("is-hidden")){
|
||||||
|
$(document).trigger("uiDrawerShowDrawer", {
|
||||||
|
drawer: "compose",
|
||||||
|
withAnimation: true
|
||||||
|
});
|
||||||
|
|
||||||
|
window.setTimeout(() => $(this).trigger("click"), 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
e.preventDefault();
|
||||||
|
e.stopPropagation();
|
||||||
|
e.stopImmediatePropagation();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
//
|
//
|
||||||
// Block: Work around clipboard HTML formatting.
|
// Block: Work around clipboard HTML formatting.
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user