diff options
Diffstat (limited to 'themes/default')
-rwxr-xr-x | themes/default/js/saveLink.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/default/js/saveLink.js b/themes/default/js/saveLink.js index ccc00d1e..bee453c0 100755 --- a/themes/default/js/saveLink.js +++ b/themes/default/js/saveLink.js | |||
@@ -75,7 +75,7 @@ $.fn.ready(function() { | |||
75 | ========================================================================== */ | 75 | ========================================================================== */ |
76 | 76 | ||
77 | $(window).keydown(function(e){ | 77 | $(window).keydown(function(e){ |
78 | if ( ( e.target.tagName.toLowerCase() !== 'input' && e.keyCode == 83 ) || e.keyCode == 27 ) { | 78 | if ( ( e.target.tagName.toLowerCase() !== 'input' && e.keyCode == 83 ) || (e.keyCode == 27 && $bagitForm.is(':visible') ) ) { |
79 | $bagit.removeClass("current"); | 79 | $bagit.removeClass("current"); |
80 | $("#bagit-arrow").removeClass("arrow-down"); | 80 | $("#bagit-arrow").removeClass("arrow-down"); |
81 | toggleSaveLinkForm(); | 81 | toggleSaveLinkForm(); |