开发者

are there any keyboard shortcuts for glimpse?

开发者 https://www.devze.com 2023-03-25 22:39 出处:网络
Are there any keyboard shortcuts for glimpse? I\'ve checked their website http://getglimpse.com/Help and http://getglimpse.com/Help/Configuration as well as the twitter开发者_JAVA技巧 hashtag #glimpse

Are there any keyboard shortcuts for glimpse? I've checked their website http://getglimpse.com/Help and http://getglimpse.com/Help/Configuration as well as the twitter开发者_JAVA技巧 hashtag #glimpse, but I'm getting no love.

I'm looking for something similar to how firebug lite uses F12 to show their console.


There are not currently any keyboard shortcuts for Glimpse.

It is a great idea though - suggest it on the Glimpse User Voice page, or feel free to contribute.


There aren't any currently but I have implemented some of them myself using javascript so our developers could use keyboard shortcuts to turn on/ or star session. Something like

    <script type="text/javascript">
            $(document).ready(function () {
                $(document).keyup(function (event) {
                    var key = event.keyCode || event.charCode || 0;
                    if (key == 71 && event.altKey) {
                        document.cookie = 'glimpseState=On; path=/; expires=Sat, 01 Jan 2050 12:00:00 GMT;';
                        window.location.reload();
                    }
                    else if(key == 83 && event.altKey && event.ctrlKey) {
                        document.cookie = 'glimpseClientName=' + prompt('Client Name?') + '; path=/; expires=Sat, 01 Jan 2050 12:00:00 GMT;'; 
                        window.location.reload();
                    }
                });
            });
        </script>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号