com web/php: Allow the esc key to close the help overlay.: js/common.js
| From: | Levi Morrison | 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-17853@lists.php.net to get a copy of this message | ||
Commit: 897eae106de565b6f00b36c4bcde9b0fa288d707
Author: Levi Morrison <levim@php.net> 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;