hotkeys: Disable enter hotkey while Streams menu is open.

Prevents compose box from opening and potentially sending a message.
Fixes #2412
This commit is contained in:
Cynthia Lin
2017-05-15 15:08:09 -07:00
committed by Tim Abbott
parent 21e0db03e1
commit 4cc33b6173

View File

@@ -269,6 +269,10 @@ exports.process_enter_key = function (e) {
return false; return false;
} }
if (exports.is_subs) {
return false;
}
if (exports.processing_text()) { if (exports.processing_text()) {
if (activity.searching()) { if (activity.searching()) {
activity.blur_search(); activity.blur_search();