Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).keydown(
- function(e)
- {
- if (e.keyCode == 39) {
- $("button:focus").next().focus();
- }
- if (e.keyCode == 37) {
- $("button:focus").prev().focus();
- }
- if (e.keyCode == 40) {
- $("button:focus").next(+3).focus();
- }
- if (e.keyCode == 38) {
- $("button:focus").prev(-3).focus();
- }
- }
- );
Add Comment
Please, Sign In to add comment