Commit: 897eae106de565b6f00b36c4bcde9b0fa288d707 Author: Levi Morrison <[email protected]> Fri, 27 Dec 2013 13:14:17 -0700 Parents: 2e0900c6c08cd1d2115c76df5127aed779c5b361 Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=897eae106de565b6f00b36c4bcde9b0fa288d707 Log: Allow the esc key to close the help overlay. Changed paths: M js/common.js Diff: diff --git a/js/common.js b/js/common.js index 4ef9b92..97abbbd 100755 --- a/js/common.js +++ b/js/common.js @@ -59,6 +59,9 @@ Mousetrap.bind('up up down down left right left right b a enter', function() { Mousetrap.bind("?", function() { $("#trick").slideToggle(); }); +Mousetrap.bind("esc", function() { + $("#trick").slideUp(); +}); /* Mousetrap.bind("j", function() { var n = window.pageYOffset + 20; -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
