1
0
mirror of https://github.com/moparisthebest/wallabag synced 2025-02-17 07:30:09 -05:00

Merge pull request #549 from mariroz/fix-tagform-and-shortcat-toggle-savelinkform-conflict

fix of conflict of s shortcat and entering s in input fields
This commit is contained in:
Nicolas Lœuillet 2014-03-12 12:55:48 +01:00
commit f7382cd8c3

View File

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