hotkeys: add E to edit, shift+D to delete to artists, pools, wiki, forum.

This commit is contained in:
evazion
2017-01-24 02:24:12 -06:00
parent c3fa653fc5
commit 7571cda640
8 changed files with 55 additions and 12 deletions

View File

@@ -50,8 +50,11 @@
Danbooru.WikiPage.initialize_shortcuts = function() {
if ($("#a-show").length) {
Danbooru.keydown("e", "edit", function(e) {
$("#wiki-page-edit-link")[0].click();
e.preventDefault();
$("#wiki-page-edit a")[0].click();
});
Danbooru.keydown("shift+d", "delete", function(e) {
$("#wiki-page-delete a")[0].click();
});
}
}