From 2c12c0f3a2dbe3149c884907ab0f591e9ff6651d Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Wed, 14 Jun 2023 15:04:51 +0200 Subject: [PATCH] wait #6027 @0.25 --- resources/linkeditor/js/linkeditor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); } -- 2.39.5