hotkeys: Prevent lightbox closing when message view hotkey is pressed.

Fixes #6757.
This commit is contained in:
Cynthia Lin
2017-10-02 15:41:13 -07:00
committed by Tim Abbott
parent 60b8cba7df
commit c99f3d585d

View File

@@ -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;