From 960e56886832fc9cb75da953831e972a72fcbbc7 Mon Sep 17 00:00:00 2001 From: Just van Rossum Date: Wed, 27 Nov 2024 21:05:39 +0100 Subject: [PATCH] Turn Edit items into submenu in context menu --- src/fontra/views/editor/editor.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fontra/views/editor/editor.js b/src/fontra/views/editor/editor.js index 3999faf2a..82d23515d 100644 --- a/src/fontra/views/editor/editor.js +++ b/src/fontra/views/editor/editor.js @@ -3274,7 +3274,9 @@ export class EditorController { } buildContextMenuItems(event) { - const menuItems = [...this.basicContextMenuItems]; + const menuItems = [ + { title: translate("menubar.edit"), getItems: () => this.basicContextMenuItems }, + ]; if (this.sceneSettings.selectedGlyph?.isEditing) { this.sceneController.updateContextMenuState(event); menuItems.push(MenuItemDivider);