diff --git a/app/static/js/scripts.js b/app/static/js/scripts.js index 24aa9772..f56738f7 100644 --- a/app/static/js/scripts.js +++ b/app/static/js/scripts.js @@ -386,6 +386,9 @@ var showCurrentPost = false; // when true, the currently selected post will b function setupKeyboardShortcuts() { document.addEventListener('keydown', function(event) { if (document.activeElement.tagName !== 'INPUT' && document.activeElement.tagName !== 'TEXTAREA') { + if(document.activeElement.tagName !== 'A' && document.activeElement.classList.contains('skip-link')) { + return; + } var didSomething = false; if(event.shiftKey && event.key === '?') { location.href = '/keyboard_shortcuts'; diff --git a/app/templates/base.html b/app/templates/base.html index a1daff11..ece3cbdd 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -92,6 +92,7 @@ + {% block navbar %} -