1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-04-21 15:15:48 +02:00

Swap shift key functionality in drawer and retweet account selectors

This commit is contained in:
chylex 2017-03-08 13:01:48 +01:00
parent 71eade7e86
commit 79f6df121b

View File

@ -494,6 +494,23 @@
});
})();
//
// Block: Swap shift key functionality for selecting accounts.
//
$(".js-drawer[data-drawer='compose']").delegate(".js-account-list > .js-account-item", "click", function(e){
e.shiftKey = !e.shiftKey;
});
TD.components.AccountSelector.prototype.refreshPostingAccounts = appendToFunction(TD.components.AccountSelector.prototype.refreshPostingAccounts, function(){
if (!this.$node.attr("td-account-selector-hook")){
this.$node.attr("td-account-selector-hook", "1");
this.$node.delegate(".js-account-item", "click", function(e){
e.shiftKey = !e.shiftKey;
});
}
});
//
// Block: Work around clipboard HTML formatting.
//