consistent Alt-key behavior
This commit is contained in:
@@ -99,8 +99,9 @@ export class CmapConceptController {
|
||||
changes.submapDepth = createContext.parentSubmap.submapDepth + 1;
|
||||
}
|
||||
const newRecord = this.addNode(changes);
|
||||
if (createContext.source && newRecord) editor.finishRelation(createContext.source, newRecord);
|
||||
else if (newRecord) editor.selectItem(newRecord);
|
||||
if (createContext.source && newRecord) {
|
||||
editor.finishRelation(createContext.source, newRecord, Boolean(createContext.direct));
|
||||
} else if (newRecord) editor.selectItem(newRecord);
|
||||
}
|
||||
editor.commitHistory();
|
||||
if (this.getCurrentStorageMap()) await this.save({ automatic: true });
|
||||
|
||||
Reference in New Issue
Block a user