fix key shortcuts

This commit is contained in:
r888888888
2013-06-19 14:39:00 -07:00
parent c8d6190b4e
commit 25db78f8c0
5 changed files with 12 additions and 12 deletions

View File

@@ -669,7 +669,7 @@ $(function() {
if ($("#c-posts").length && $("#a-show").length && $("#image").length) {
if ($("#note-locked-notice").length == 0) {
$("#translate").bind("click", Danbooru.Note.TranslationMode.toggle);
$(document).bind("keydown", "n", Danbooru.Note.TranslationMode.toggle);
$(document).bind("keypress", "n", Danbooru.Note.TranslationMode.toggle);
}
Danbooru.Note.load_all();
$("#image").click(Danbooru.Note.Box.toggle_all);