hafriedlander / jquery.entwine

Concrete UI programming library for jQuery
BSD 3-Clause "New" or "Revised" License
152 stars 15 forks source link

Can't open inspector on Chrome OSX #26

Open chillu opened 10 years ago

chillu commented 10 years ago

The CTRL+<backtick> key combo doesn't seem to register as a keyboard event in Chrome (with standard US keyboard layout and OSX settings). How about CTRL+\ instead?

diff --git a/thirdparty/jquery-entwine/src/jquery.entwine.inspector.js b/thirdparty/jquery-entwine/src/jq
index 588a535..991be0d 100755
--- a/thirdparty/jquery-entwine/src/jquery.entwine.inspector.js
+++ b/thirdparty/jquery-entwine/src/jquery.entwine.inspector.js
@@ -45,7 +45,7 @@ jQuery(function($){
        });

        $('body').bind('keypress', function(e){
-               if (e.ctrlKey && e.which == 96) {
+               if (e.ctrlKey && e.which == 28) {
                        if (inspectorPanel.css('visibility') != 'visible') {
                                inspectorPanel.css({top: 0, visibility: 'visible'});
                                $('body').css({marginTop: 400});
UndefinedOffset commented 9 years ago

You know I've been noticing this in firefox on windows ctrl+backtick jumps to the first tab groups first tab. Interestingly as well backslash () is e.which==92