mirror of
https://github.com/moparisthebest/wallabag
synced 2024-12-23 15:58:55 -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:
commit
f7382cd8c3
@ -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;
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user