X-Git-Url: https://git.sesse.net/?p=remoteglot;a=blobdiff_plain;f=www%2Fjs%2Fremoteglot.js;h=47bd62fe160ed1f38472cae89e06002417ac6a50;hp=565b61dd686ce2b57668183aff70e30b8760e366;hb=998ea0709033e84e16cdcec97850604128e15e0c;hpb=a66c165f94e06a675b392d133f60c3dbbab22c60 diff --git a/www/js/remoteglot.js b/www/js/remoteglot.js index 565b61d..47bd62f 100644 --- a/www/js/remoteglot.js +++ b/www/js/remoteglot.js @@ -711,6 +711,13 @@ var init = function() { update_highlight(); redraw_arrows(); }); + $(window).keyup(function(event) { + if (event.which == 39) { + next_move(); + } else if (event.which == 37) { + prev_move(); + } + }); }; $(document).ready(init);