diff --git a/static/js/feedback_widget.js b/static/js/feedback_widget.js index f46a409866..6dae4e038e 100644 --- a/static/js/feedback_widget.js +++ b/static/js/feedback_widget.js @@ -105,6 +105,10 @@ function set_up_handlers() { }); } +exports.is_open = function () { + return meta.opened; +}; + exports.dismiss = function () { animate.fadeOut(); }; diff --git a/static/js/hotkey.js b/static/js/hotkey.js index 1e98c80dc6..f827301a00 100644 --- a/static/js/hotkey.js +++ b/static/js/hotkey.js @@ -189,6 +189,11 @@ exports.process_escape_key = function (e) { return false; } + if (feedback_widget.is_open()) { + feedback_widget.dismiss(); + return true; + } + if (overlays.is_modal_open()) { overlays.close_active_modal(); return true;