lib/sensu-dashboard/public/js/functions.js in sensu-dashboard-0.6.1 vs lib/sensu-dashboard/public/js/functions.js in sensu-dashboard-0.6.2

- old
+ new

@@ -174,9 +174,16 @@ elem.fadeTo("fast", 0, function() { elem.remove(); }); filterEvents(); } }); + $(document).keyup(function(e) { + if (e.keyCode == 27) { // esc + $("#lean_overlay").fadeOut(200); + $("#event_details_modal").css({'display':'none'}); + } + }); + // TODO: fix clipboard support /*$('div#event_details_modal > div.event_detail_group > div.copy').click(function() { var currentVal = $(this).parent().find('div.event_detail').children().last().text(); $(this).zclip({