odoo/odoo#194122

Created by Discuss, Giorgio Tocco (gito)
Merged at 70b0c5a5567cb5e44fcd0b55d789fd0fa6375d4c

Statuses:

label
odoo-dev:17.0-autofocus-composer-mobile-gito
head
ed0c491c956ad6080983386a69bcfd9a4a627bca
merged
9 months ago by Discuss, Alexandre Kühn (aku)
odoo/odoo
17.0 #194122
saas-17.2 #194274
saas-17.4 #194308

[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