mirror of
https://github.com/zulip/zulip.git
synced 2025-11-21 15:09:34 +00:00
hotkeys: Prevent lightbox closing when message view hotkey is pressed.
Fixes #6757.
This commit is contained in:
@@ -420,8 +420,8 @@ exports.process_hotkey = function (e, hotkey) {
|
||||
subs.keyboard_sub();
|
||||
return true;
|
||||
}
|
||||
if (overlays.lightbox_open()) {
|
||||
overlays.close_active();
|
||||
if (event_name === 'show_lightbox' && overlays.lightbox_open()) {
|
||||
overlays.close_overlay('lightbox');
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user