Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Main menu breaks Alt-← navigation

With the menu open, don't catch key events if a modifier key is pressed

fix bug 775475
  • Loading branch information...
commit d60ddf09fcab2824803774dfdc21ef366ab78d26 1 parent 258ab84
@kafji kafji authored Rik committed
Showing with 3 additions and 0 deletions.
  1. +3 −0  media/js/nav-main.js
View
3  media/js/nav-main.js
@@ -43,6 +43,9 @@ $(document).ready(function() {
// Enable keyboard navigation
$(this).keydown(function(event) {
var target;
+ if(event.altKey || event.ctrlKey || event.metaKey || event.shiftKey) {
+ return true;
+ }
switch (event.keyCode) {
case 33: // Page Up
case 36: // Home
Please sign in to comment.
Something went wrong with that request. Please try again.