mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	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:
		@@ -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();
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user