From: Vincent Vanwaelscappel Date: Wed, 14 Jun 2023 13:04:51 +0000 (+0200) Subject: wait #6027 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=2c12c0f3a2dbe3149c884907ab0f591e9ff6651d;p=fluidbook-toolbox.git wait #6027 @0.25 --- diff --git a/resources/linkeditor/js/linkeditor.js b/resources/linkeditor/js/linkeditor.js index 9584e91b6..e83ba587c 100644 --- a/resources/linkeditor/js/linkeditor.js +++ b/resources/linkeditor/js/linkeditor.js @@ -190,7 +190,7 @@ LinkEditor.prototype = { } else if (e.keyCode == 18) { $("#linkeditor-main").addClass('duplicate'); - } else if (e.keyCode == 60) { + } else if (e.key == '>' || e.keyCode===60 || e.keyCode===226) { $("#linkeditor-main").addClass('polygon'); } $this.rulers.moveRuler(); @@ -204,7 +204,7 @@ LinkEditor.prototype = { $this.zoom.resetZoomDrag(); } else if (e.keyCode == 18) { $("#linkeditor-main").removeClass('duplicate'); - } else if (e.keyCode == 60) { + } else if (e.key == '>' || e.keyCode===60 || e.keyCode===226) { $("#linkeditor-main").removeClass('polygon'); $this.links.closePolygonShape(); }