mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	inbox: Fix topic not focused with r hotkey with no topic focused.
				
					
				
			We mimic the behaviour of `c` hotkey to fix this bug.
This commit is contained in:
		@@ -214,7 +214,11 @@ function get_focus_area(opts: ComposeTriggeredOptions): string {
 | 
			
		||||
        (opts.message_type === "stream" && opts.stream_id !== undefined) ||
 | 
			
		||||
        (opts.message_type === "private" && opts.private_message_recipient_ids.length > 0)
 | 
			
		||||
    ) {
 | 
			
		||||
        if (opts.trigger === "clear topic button" || opts.trigger === "compose_hotkey") {
 | 
			
		||||
        if (
 | 
			
		||||
            opts.trigger === "clear topic button" ||
 | 
			
		||||
            opts.trigger === "compose_hotkey" ||
 | 
			
		||||
            opts.trigger === "inbox_nofocus"
 | 
			
		||||
        ) {
 | 
			
		||||
            return "input#stream_message_recipient_topic";
 | 
			
		||||
        }
 | 
			
		||||
        return "textarea#compose-textarea";
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user