From cf3cc4bfe0c0678a93e794683379afe253d83b11 Mon Sep 17 00:00:00 2001 From: bit-odoo Date: Wed, 3 Feb 2021 08:40:21 +0000 Subject: [PATCH] [FIX] mail: odoo shortcuts doesn't work if chat window is focused MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Before this commit: When chat window is focused odoo shortcuts (with alt) did not work because of there is stop propagation in _onKeydown method. After this commit: Remove stop propagation. Now odoo shortcuts (with alt) work properly. Task-2388829 closes odoo/odoo#66280 X-original-commit: 1de3ce47c6ab1a7afaccfda086a6284c0c41dcf3 Signed-off-by: Sébastien Theys (seb) --- .../mail/static/src/components/chat_window/chat_window.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/addons/mail/static/src/components/chat_window/chat_window.js b/addons/mail/static/src/components/chat_window/chat_window.js index 7e31cd3b6d4..f9271523651 100644 --- a/addons/mail/static/src/components/chat_window/chat_window.js +++ b/addons/mail/static/src/components/chat_window/chat_window.js @@ -289,12 +289,6 @@ class ChatWindow extends Component { * @param {KeyboardEvent} ev */ _onKeydown(ev) { - /** - * Prevent auto-focus of fuzzy search in the home menu. - * Useful in order to allow copy/paste content inside chat window with - * CTRL-C & CTRL-V when on the home menu. - */ - ev.stopPropagation(); if (!this.chatWindow) { // prevent crash during delete return;