#10: Change next/prev defaults to an array of common controls

This commit is contained in:
imakewebthings 2011-08-30 12:55:56 +08:00
parent e7c9ed4d46
commit b2bec2779c
2 changed files with 10 additions and 2 deletions

View file

@ -394,8 +394,10 @@ that use the API provided by core.
},
keys: {
next: 39, // right arrow key
previous: 37 // left arrow key
// enter, space, page down, right arrow, down arrow,
next: [13, 32, 34, 39, 40],
// backspace, page up, left arrow, up arrow
previous: [8, 33, 37, 38]
},
touch: {

View file

@ -107,6 +107,12 @@ the deck container.
e.preventDefault();
});
$($[deck]('getOptions').selectors.gotoInput)
.unbind('keydown.deckgoto')
.bind('keydown.deckgoto', function(e) {
e.stopPropagation();
});
});
})(jQuery, 'deck');