From b67c57dc6c932561ae36d379a5cea162a7dbb37a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Geelen=20=28sge=29?= Date: Tue, 10 Aug 2021 14:06:34 +0000 Subject: [PATCH] [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 --- addons/web_editor/static/src/js/wysiwyg/wysiwyg.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js b/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js index c77add0371a..8edb09bca92 100644 --- a/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js +++ b/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js @@ -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(); }