Skip to content

Commit

Permalink
Turn Edit items into submenu in context menu
Browse files Browse the repository at this point in the history
  • Loading branch information
justvanrossum committed Nov 27, 2024
1 parent 61aeadb commit 960e568
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/fontra/views/editor/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 960e568

Please sign in to comment.