1
0
mirror of https://github.com/moparisthebest/wallabag synced 2024-12-25 00:38:51 -05:00

Merge pull request #622 from wallabag/fix-612

[fix] Escap key displays save a link form #612
This commit is contained in:
Nicolas Lœuillet 2014-04-08 22:11:17 +02:00
commit b96b075b55

View File

@ -75,7 +75,7 @@ $.fn.ready(function() {
========================================================================== */ ========================================================================== */
$(window).keydown(function(e){ $(window).keydown(function(e){
if ( ( e.target.tagName.toLowerCase() !== 'input' && e.keyCode == 83 ) || e.keyCode == 27 ) { if ( ( e.target.tagName.toLowerCase() !== 'input' && e.keyCode == 83 ) || (e.keyCode == 27 && $bagitForm.is(':visible') ) ) {
$bagit.removeClass("current"); $bagit.removeClass("current");
$("#bagit-arrow").removeClass("arrow-down"); $("#bagit-arrow").removeClass("arrow-down");
toggleSaveLinkForm(); toggleSaveLinkForm();