[FIX] web_editor: change link shortcut to ctrl+M

Old shortcut (ctrl+K) was conflicting with the new command palette feature, so we change it to CTRL+M.

task-2593213

closes odoo/odoo#75069

X-original-commit: 0371fe2b9e54ff557265a8f8fc919d351ed6a7d5
Signed-off-by: Antoine Guenet <Zinston@users.noreply.github.com>
This commit is contained in:
Sébastien Geelen (sge)
2021-08-13 08:56:38 +00:00
parent ad87436a0f
commit b67c57dc6c
@@ -888,8 +888,8 @@ const Wysiwyg = Widget.extend({
* Handle custom keyboard shortcuts.
*/
_handleShortcuts: function (e) {
// Open the link modal / tool when CTRL+K is pressed.
if (e && e.key === 'k' && (e.ctrlKey || e.metaKey)) {
// Open the link modal / tool when CTRL+M is pressed.
if (e && e.key === 'm' && (e.ctrlKey || e.metaKey)) {
e.preventDefault();
this.toggleLinkTools();
}