mirror of https://github.com/zulip/zulip.git
hotkeys: Prevent lightbox closing when message view hotkey is pressed.
Fixes #6757.
This commit is contained in:
parent
60b8cba7df
commit
c99f3d585d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue