aboutsummaryrefslogtreecommitdiffhomepage
path: root/themes/baggy/js/init.js
diff options
context:
space:
mode:
authorMaryana Rozhankivska <mariroz@mr.lviv.ua>2014-03-12 13:00:37 +0200
committerMaryana Rozhankivska <mariroz@mr.lviv.ua>2014-03-12 13:00:37 +0200
commit7339b0b08dc5cd97c478981a431829bf587256f2 (patch)
tree422a2365f2e0d0d2361aa0e01ee4e487c0a985e0 /themes/baggy/js/init.js
parent1acd18510a8fc5b843bf793322ed79b249b195dc (diff)
downloadwallabag-7339b0b08dc5cd97c478981a431829bf587256f2.tar.gz
wallabag-7339b0b08dc5cd97c478981a431829bf587256f2.tar.zst
wallabag-7339b0b08dc5cd97c478981a431829bf587256f2.zip
fix of conflict of s shortcat and entering s in input fields
Diffstat (limited to 'themes/baggy/js/init.js')
-rwxr-xr-xthemes/baggy/js/init.js21
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});