mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	On enter, submit content editable.
On the enter key, the value of the content editable box should be submitted.
This commit is contained in:
		@@ -119,6 +119,9 @@ function process_hotkey(e) {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if ($(e.target).is(".editable-section")) {
 | 
			
		||||
        if (event_name === "enter") {
 | 
			
		||||
            $(e.target).parent().find(".checkmark").click();
 | 
			
		||||
        }
 | 
			
		||||
        return false;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user