mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 23:13:25 +00:00
Change escape key interception with subscription overlay.
The escape key used to be intercepted if the subscription pay display was set to “block”, but now since we use the class “show” and lack to hide and show the overlay, the query needs to change.
This commit is contained in:
@@ -195,7 +195,7 @@ function process_hotkey(e) {
|
||||
if ($("#overlay").hasClass("show")) {
|
||||
ui.exit_lightbox_photo();
|
||||
return true;
|
||||
} else if ($("#subscription_overlay").css("display") === "block") {
|
||||
} else if ($("#subscription_overlay").hasClass("show")) {
|
||||
$("#subscription_overlay").click();
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user