added keyboard shortcuts page

This commit is contained in:
albert
2011-11-02 11:02:35 -04:00
parent 1a435419c7
commit 10141af07d
7 changed files with 59 additions and 23 deletions

View File

@@ -392,7 +392,7 @@ Danbooru.Note = {
start: function() {
$("#original-file-link").click();
$("#image").one("click", Danbooru.Note.TranslationMode.create_note);
Danbooru.notice("Click on the image to create a note (shortcut is n)");
Danbooru.notice('Click on the image to create a note (shortcut is <span class="key">n</span>)');
},
stop: function() {
@@ -474,7 +474,7 @@ Danbooru.Note = {
$(function() {
if ($("#c-posts #a-show").size() > 0) {
$("#translate").one("click", Danbooru.Note.TranslationMode.start);
$(document).bind("keydown", "n", Danbooru.Note.TranslationMode.start);
key("n", Danbooru.Note.TranslationMode.start);
Danbooru.Note.load_all();
$("#image").click(Danbooru.Note.Box.toggle_all);
}