1
0
mirror of https://github.com/moparisthebest/wallabag synced 2024-11-23 17:42:15 -05:00

fix of conflict of s shortcat and entering s in input fields

This commit is contained in:
Maryana Rozhankivska 2014-03-12 13:00:37 +02:00
parent 1acd18510a
commit 7339b0b08d

View File

@ -60,16 +60,19 @@ $.fn.ready(function() {
========================================================================== */ ========================================================================== */
$(window).keydown(function(e){ $(window).keydown(function(e){
switch (e.keyCode) { if ( e.target.tagName.toLowerCase() !== 'input' ) {
// s letter switch (e.keyCode) {
case 83: // s letter
$bagitForm.toggle(); case 83:
break; $bagitForm.toggle();
case 27: return false;
$bagitForm.hide(); break;
break; case 27:
$bagitForm.hide();
break;
}
} }
}) })
}); });