mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 05:53:43 +00:00
@@ -51,6 +51,16 @@ exports.open = function () {
|
||||
$("#gear-menu").find("li:not(.invisible) a").eq(0).focus();
|
||||
};
|
||||
|
||||
exports.is_open = function () {
|
||||
return $(".dropdown").hasClass("open");
|
||||
};
|
||||
|
||||
exports.close = function () {
|
||||
if (exports.is_open()) {
|
||||
$(".dropdown").removeClass("open");
|
||||
}
|
||||
};
|
||||
|
||||
return exports;
|
||||
}());
|
||||
|
||||
|
||||
@@ -172,6 +172,11 @@ exports.process_escape_key = function (e) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (gear_menu.is_open()) {
|
||||
gear_menu.close();
|
||||
return true;
|
||||
}
|
||||
|
||||
if (exports.processing_text()) {
|
||||
if ($(".message_edit_content").filter(":focus").length > 0) {
|
||||
row = $(".message_edit_content").filter(":focus").closest(".message_row");
|
||||
|
||||
Reference in New Issue
Block a user