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