Skip to content
This repository
Browse code

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 authored August 07, 2012 Rik committed August 09, 2012

Showing 1 changed file with 3 additions and 0 deletions. Show diff stats Hide diff stats

  1. 3  media/js/nav-main.js
3  media/js/nav-main.js
@@ -43,6 +43,9 @@ $(document).ready(function() {
43 43
       // Enable keyboard navigation
44 44
       $(this).keydown(function(event) {
45 45
         var target;
  46
+        if(event.altKey || event.ctrlKey || event.metaKey || event.shiftKey) {
  47
+          return true;
  48
+        }
46 49
         switch (event.keyCode) {
47 50
           case 33: // Page Up
48 51
           case 36: // Home

0 notes on commit d60ddf0

Please sign in to comment.
Something went wrong with that request. Please try again.