mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-04-29 03:15:51 +02:00
Swap shift key functionality in drawer and retweet account selectors
This commit is contained in:
parent
71eade7e86
commit
79f6df121b
@ -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.
|
// Block: Work around clipboard HTML formatting.
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user