diff options
| author | Priyanka Kakadiya <pka@odoo.com> | 2021-01-29 11:55:19 +0000 |
|---|---|---|
| committer | Priyanka Kakadiya <pka@odoo.com> | 2021-03-10 13:30:18 +0000 |
| commit | 2542f731c5b06c3b451ecde7992d3bb45adb2c60 (patch) | |
| tree | d590eab9af3504ca9c4932cca13d36070ac3489a /addons/mail/static/src/components/composer_text_input | |
| parent | a8b43d02066b2299ac2f4b88056c37725e9ce6cd (diff) | |
[FIX] mail: fix keyboard shortcut issue for small screen
Current behavior before PR:
When having a small screen, the composer in a chat window has no actual
shortcut to send the message.
Desired behavior after PR is merged:
'CTRL-Enter' keyboard shortcut will work for small screen size.
LINKS:
PR https://github.com//pull/65241
Task-2446076
closes odoo/odoo#65241
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Diffstat (limited to 'addons/mail/static/src/components/composer_text_input')
| -rw-r--r-- | addons/mail/static/src/components/composer_text_input/composer_text_input.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/addons/mail/static/src/components/composer_text_input/composer_text_input.js b/addons/mail/static/src/components/composer_text_input/composer_text_input.js index 25796afff9d..6c0705ee40a 100644 --- a/addons/mail/static/src/components/composer_text_input/composer_text_input.js +++ b/addons/mail/static/src/components/composer_text_input/composer_text_input.js @@ -278,8 +278,7 @@ class ComposerTextInput extends Component { !ev.altKey && !ev.ctrlKey && !ev.metaKey && - !ev.shiftKey && - !this.env.messaging.device.isMobile + !ev.shiftKey ) { this.trigger('o-composer-text-input-send-shortcut'); ev.preventDefault(); |
