diff options
Diffstat (limited to 'themes/baggy/js')
-rwxr-xr-x | themes/baggy/js/init.js | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/themes/baggy/js/init.js b/themes/baggy/js/init.js index 99bffd09..4e85beaa 100755 --- a/themes/baggy/js/init.js +++ b/themes/baggy/js/init.js | |||
@@ -60,16 +60,19 @@ $.fn.ready(function() { | |||
60 | ========================================================================== */ | 60 | ========================================================================== */ |
61 | 61 | ||
62 | $(window).keydown(function(e){ | 62 | $(window).keydown(function(e){ |
63 | switch (e.keyCode) { | 63 | if ( e.target.tagName.toLowerCase() !== 'input' ) { |
64 | // s letter | 64 | switch (e.keyCode) { |
65 | case 83: | 65 | // s letter |
66 | $bagitForm.toggle(); | 66 | case 83: |
67 | break; | 67 | $bagitForm.toggle(); |
68 | case 27: | 68 | return false; |
69 | $bagitForm.hide(); | 69 | break; |
70 | break; | 70 | case 27: |
71 | $bagitForm.hide(); | ||
72 | break; | ||
73 | } | ||
71 | } | 74 | } |
72 | }) | 75 | }) |
73 | 76 | ||
74 | 77 | ||
75 | }); \ No newline at end of file | 78 | }); |