From 2542f731c5b06c3b451ecde7992d3bb45adb2c60 Mon Sep 17 00:00:00 2001 From: Priyanka Kakadiya Date: Fri, 29 Jan 2021 11:55:19 +0000 Subject: [FIX] mail: fix keyboard shortcut issue for small screen MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- addons/mail/static/src/components/thread_view/thread_view.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/mail/static/src/components/thread_view/thread_view.xml') diff --git a/addons/mail/static/src/components/thread_view/thread_view.xml b/addons/mail/static/src/components/thread_view/thread_view.xml index 99c78279adc..495408cc8f6 100644 --- a/addons/mail/static/src/components/thread_view/thread_view.xml +++ b/addons/mail/static/src/components/thread_view/thread_view.xml @@ -38,7 +38,7 @@ isDoFocus="props.isDoFocus" showAttachmentsExtensions="props.showComposerAttachmentsExtensions" showAttachmentsFilenames="props.showComposerAttachmentsFilenames" - textInputSendShortcuts="(threadView.thread.model === 'mail.channel' and threadView.thread.mass_mailing) ? ['ctrl-enter', 'meta-enter'] : ['enter']" + textInputSendShortcuts="threadView.textInputSendShortcuts" t-ref="composer" /> -- cgit v1.2.3