Commit: 27e756e1e3a2b6d11fdf7ddc728e735ce92d2f0d Author: Levi Morrison <[email protected]> Fri, 27 Dec 2013 13:14:17 -0700 Parents: 55625c15e626b5369b51d52acf1bbfc56c1d9db9 Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=27e756e1e3a2b6d11fdf7ddc728e735ce92d2f0d 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
