Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _addKeyboardEvents: function() {
- var scope = this;
- $(document).keydown(function(e) {
- if (e.keyCode == 37) {
- scope._previousMedia();
- return false
- } else if (e.keyCode == 39) {
- scope._nextMedia();
- return false
- }
- if (e.keyCode == 27) {
- if ($(e.target).parents("#media")) {
- scope.closePanel(true);
- $("#frontNavTop_href").focus();
- $("#frontNavTop_href").removeClass("keyboard-focused")
- }
- }
- })
- },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement