[FIX] mail: odoo shortcuts doesn't work if chat window is focused
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) <seb@odoo.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user