From: Scott Worley Date: Fri, 28 Feb 2014 03:23:45 +0000 (-0800) Subject: 'n' and 'p' for next and previous input image X-Git-Url: http://git.scottworley.com/picsort/commitdiff_plain/51b05914e98fad8ba8a6eef93691e2e5bae034ee 'n' and 'p' for next and previous input image --- diff --git a/picsorter.js b/picsorter.js index 567c247..3fd9e28 100644 --- a/picsorter.js +++ b/picsorter.js @@ -10,3 +10,5 @@ $(function() { }); Mousetrap.bind('z', function() { $("#pic").toggleClass("fit_view"); }); +Mousetrap.bind('n', function() { input_index ++; setpic(); }); +Mousetrap.bind('p', function() { input_index --; setpic(); });