summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/components/chat_window
diff options
context:
space:
mode:
authorDidier (did) <did@odoo.com>2020-07-07 10:41:10 +0000
committerDidier (did) <did@odoo.com>2020-07-16 16:24:25 +0000
commitc1b6c066bcb5a581ab9c5320a9ff5fd505da85b3 (patch)
treedb6d85f975b661906b7b3fbf03a17c57e520245a /addons/mail/static/src/components/chat_window
parent9ba8eb4a8338fe8255ee3dc721addbc5797b139d (diff)
[IMP] mail: focus the next chat window when closed by ESC
This allows user to close multiple windows with ESC key. task-2283891 closes odoo/odoo#54604 X-original-commit: bac3d7792a48f86a39f92e0fcfc18d522ce00d94 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Diffstat (limited to 'addons/mail/static/src/components/chat_window')
-rw-r--r--addons/mail/static/src/components/chat_window/chat_window.js1
1 files changed, 1 insertions, 0 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 0f1a27559ea..e25598b1879 100644
--- a/addons/mail/static/src/components/chat_window/chat_window.js
+++ b/addons/mail/static/src/components/chat_window/chat_window.js
@@ -310,6 +310,7 @@ class ChatWindow extends Component {
break;
}
ev.preventDefault();
+ this.chatWindow.focusNextVisibleUnfoldedChatWindow();
this.chatWindow.close();
break;
}