com web/php: Allow the esc key to close the help overlay.: js/common.js

From: Date: Fri, 27 Dec 2013 20:14:17 +0000
Subject: com web/php: Allow the esc key to close the help overlay.: js/common.js
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-22254@lists.php.net to get a copy of this message
Commit: 27e756e1e3a2b6d11fdf7ddc728e735ce92d2f0d Author: Levi Morrison <levim@php.net> 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;

« previous php.webmaster (#22254) next »