|
|
|
@ -63,6 +63,7 @@ const KeyWordCommandMap: Map<string, string> = new Map(Object.entries({
|
|
|
|
|
|
|
|
|
|
"N": CommandNames.HighlightNode,
|
|
|
|
|
"N2": CommandNames.HighlightNodeAndChilds,
|
|
|
|
|
"TD": CommandNames.TemplateDelete,
|
|
|
|
|
}));
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -175,13 +176,14 @@ export class ContextMenuServices implements EditorService
|
|
|
|
|
{
|
|
|
|
|
if (selects[0] instanceof Board)
|
|
|
|
|
menuKeywords.push(...[
|
|
|
|
|
MenuDividerKWD,
|
|
|
|
|
{ key: "10", msg: `加点` },
|
|
|
|
|
{ key: "11", msg: `删点` },
|
|
|
|
|
]);
|
|
|
|
|
if (selects[0].Template && selects[0].Template.Object)
|
|
|
|
|
{
|
|
|
|
|
let temp = selects[0].Template.Object;
|
|
|
|
|
menuKeywords.push({ key: "N", msg: "亮显本节点" }, { key: "N2", msg: "亮显空间子层" });
|
|
|
|
|
menuKeywords.push(MenuDividerKWD, { key: "N", msg: "亮显本节点" }, { key: "N2", msg: "亮显空间子层" }, { key: "TD", msg: "删除节点" });
|
|
|
|
|
if (temp instanceof TemplateWineRackRecord)
|
|
|
|
|
menuKeywords.push({ key: "WR", msg: "编辑酒格模块" });
|
|
|
|
|
else if (temp instanceof TemplateBoardRecord || temp instanceof TemplateLeftRightBoardRecord || temp instanceof TemplateTopBottomBoard)
|
|
|
|
|