Skip to content

Commit

Permalink
prevent left and right keyboard events
Browse files Browse the repository at this point in the history
  • Loading branch information
mageddo committed Aug 26, 2019
1 parent 81070c2 commit 5381be6
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion RELEASE-NOTES.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
### 2.18.0
* Feature: Multiple environments, now you can setup a group of hostnames and save it to a environment, then you can
create a new environment and switch between them, very useful when working on different contexts switching from QA to PROD,
for example
for example, [see the docs](http://mageddo.github.io/dns-proxy-server/2.18/en/2-features/multiple-environments/)

### 2.17.4
* Clearing cache for resolvers when the config file is saved
Expand Down
40 changes: 20 additions & 20 deletions docs/themes/hugo-theme-learn/static/js/learn.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,24 +223,24 @@ jQuery(document).ready(function() {
});
});

jQuery('input, textarea').keydown(function (e) {
// left and right arrow keys
if (e.which == '37' || e.which == '39') {
e.stopPropagation();
}
});

jQuery(document).keydown(function(e) {
// prev links - left arrow key
if(e.which == '37') {
jQuery('.nav.nav-prev').click();
}

// next links - right arrow key
if(e.which == '39') {
jQuery('.nav.nav-next').click();
}
});
// jQuery('input, textarea').keydown(function (e) {
// // left and right arrow keys
// if (e.which == '37' || e.which == '39') {
// e.stopPropagation();
// }
// });
//
// jQuery(document).keydown(function(e) {
// // prev links - left arrow key
// if(e.which == '37') {
// jQuery('.nav.nav-prev').click();
// }
//
// // next links - right arrow key
// if(e.which == '39') {
// jQuery('.nav.nav-next').click();
// }
// });

$('#top-bar a:not(:has(img)):not(.btn)').addClass('highlight');
$('#body-inner a:not(:has(img)):not(.btn):not(a[rel="footnote"])').addClass('highlight');
Expand All @@ -264,7 +264,7 @@ jQuery(document).ready(function() {
});
}

/**
/**
* Fix anchor scrolling that hides behind top nav bar
* Courtesy of https://stackoverflow.com/a/13067009/28106
*
Expand Down Expand Up @@ -346,7 +346,7 @@ jQuery(document).ready(function() {

$(document).ready($.proxy(anchorScrolls, 'init'));
})(window.document, window.history, window.location);

});

jQuery(window).on('load', function() {
Expand Down

0 comments on commit 5381be6

Please sign in to comment.