From 4ea87bf24583d4fdc61622fb257039743a3fa11f Mon Sep 17 00:00:00 2001 From: Just van Rossum Date: Thu, 16 May 2024 10:56:55 +0200 Subject: [PATCH] Go to font axes editor with tool click --- src/fontra/views/editor/panel-designspace-navigation.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/fontra/views/editor/panel-designspace-navigation.js b/src/fontra/views/editor/panel-designspace-navigation.js index cb630762b..ddf6ce403 100644 --- a/src/fontra/views/editor/panel-designspace-navigation.js +++ b/src/fontra/views/editor/panel-designspace-navigation.js @@ -71,7 +71,12 @@ export default class DesignspaceNavigationPanel extends Panel { makeAccordionHeaderButton({ icon: "tool", tooltip: "Edit font axes", - // onclick: (event) => console.log("edit font axes"), + onclick: (event) => { + const url = new URL(window.location); + url.pathname = url.pathname.replace("/editor/", "/fontinfo/"); + url.hash = "#axes-panel"; + window.open(url.toString()); + }, }), makeAccordionHeaderButton({ icon: "refresh",