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

@@ -22,12 +22,12 @@
Danbooru.PostPopular.initialize_all = function() {
if ($("#c-explore-posts").length) {
if (Danbooru.meta("enable-js-navigation") === "true") {
$(document).bind("keydown", "a", function(e) {
$(document).bind("keypress", "a", function(e) {
Danbooru.PostPopular.nav_prev();
e.preventDefault();
});
$(document).bind("keydown", "d", function(e) {
$(document).bind("keypress", "d", function(e) {
Danbooru.PostPopular.nav_next();
e.preventDefault();
});