[menu] preventing menu toggle when Ctrl is pressed (e.g., for Ctrl+Shift+M for respon... 141/head
authorRémi Emonet <[email protected]>
Wed, 15 May 2013 09:31:51 +0000 (15 11:31 +0200)
committerRémi Emonet <[email protected]>
Mon, 4 Nov 2013 22:46:40 +0000 (4 23:46 +0100)
extensions/menu/deck.menu.js

index 936e3e7..742abf9 100644 (file)
@@ -149,6 +149,7 @@ on the deck container.
                // Bind key events
                $d.unbind('keydown.deckmenu').bind('keydown.deckmenu', function(e) {
                        if (e.which === opts.keys.menu || $.inArray(e.which, opts.keys.menu) > -1) {
+                               if (e.ctrlKey) return;
                                $[deck]('toggleMenu');
                                e.preventDefault();
                        }