[REV] web_editor: change link shortcut to ctrl+K

This reverts commit 0371fe2b9e54ff557265a8f8fc919d351ed6a7d5.

task-2635043

closes odoo/odoo#75842

X-original-commit: d37a807cd0000bf3aa0fd150b5924a06de31145f
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
Signed-off-by: Sébastien Geelen <sebgeelen@users.noreply.github.com>
This commit is contained in:
Sébastien Geelen (sge)
2021-09-01 16:23:11 +00:00
parent 7d11b5fcd0
commit 2cc16507fd
@@ -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();
}