remove keymaster dependency

This commit is contained in:
albert
2012-09-19 16:53:36 -04:00
parent f15edff392
commit 858a8ed72a
6 changed files with 9 additions and 10 deletions

View File

@@ -22,13 +22,13 @@
}
Danbooru.Post.initialize_shortcuts = function() {
key('/', function(e) {
$(document).bind("keypress", '/', function(e) {
$("#tags").trigger("focus");
e.preventDefault();
});
if ($("#a-show").length) {
key('e', function(e) {
$(document).bind("keypress", 'e', function(e) {
$("#post-edit-link").trigger("click");
$("#post_tag_string").trigger("focus");
e.preventDefault();