From 2cc16507fdcc6e5c1343b2b12e31b2617fb9b08e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Geelen=20=28sge=29?= Date: Wed, 1 Sep 2021 07:31:26 +0000 Subject: [PATCH] [REV] web_editor: change link shortcut to ctrl+K MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 0371fe2b9e54ff557265a8f8fc919d351ed6a7d5. task-2635043 closes odoo/odoo#75842 X-original-commit: d37a807cd0000bf3aa0fd150b5924a06de31145f Signed-off-by: David Monjoie (dmo) Signed-off-by: Sébastien Geelen --- 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 57c4a6c97bf..e2fa3b259fc 100644 --- a/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js +++ b/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js @@ -922,8 +922,8 @@ const Wysiwyg = Widget.extend({ * Handle custom keyboard shortcuts. */ _handleShortcuts: function (e) { - // Open the link modal / tool when CTRL+M is pressed. - if (e && e.key === 'm' && (e.ctrlKey || e.metaKey)) { + // Open the link modal / tool when CTRL+K is pressed. + if (e && e.key === 'k' && (e.ctrlKey || e.metaKey)) { e.preventDefault(); this.toggleLinkTools(); }