diff --git a/themes/baggy/js/init.js b/themes/baggy/js/init.js index 99bffd0..4e85bea 100755 --- a/themes/baggy/js/init.js +++ b/themes/baggy/js/init.js @@ -60,16 +60,19 @@ $.fn.ready(function() { ========================================================================== */ $(window).keydown(function(e){ - switch (e.keyCode) { - // s letter - case 83: - $bagitForm.toggle(); - break; - case 27: - $bagitForm.hide(); - break; + if ( e.target.tagName.toLowerCase() !== 'input' ) { + switch (e.keyCode) { + // s letter + case 83: + $bagitForm.toggle(); + return false; + break; + case 27: + $bagitForm.hide(); + break; + } } }) -}); \ No newline at end of file +});