mirror of https://github.com/zulip/zulip.git
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:
parent
e21fe8b886
commit
d8fc30a776
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue