odoo/odoo#194308

Created by fw-bot
Closed
label
odoo-dev:saas-17.4-17.0-autofocus-composer-mobile-gito-HM8R-fw
head
cee155d95cee5b27998f90eddad1a4ba901799af
odoo/odoo
17.0 #194122
saas-17.2 #194274
saas-17.4 #194308

[FW][FIX] mail: no autofocus on composer on mobile

Before this commit, when opening a channel on mobile the composer gets automatically focused.
This is not a problem on desktop, but when on mobile it triggers the opening of the system keyboard, occupying half the screen and requiring a "back" command to close it.

This happens because the function that opens the chat window will put focus on the composer.
This commit fixes the issue by only focusing the composer when not on mobile.

task-4115728

Forward-Port-Of: #194274
Forward-Port-Of: #194122