consistent Alt-key behavior

This commit is contained in:
2026-09-05 12:06:04 +02:00
parent 42fcea9af8
commit 3e980e950a
2 changed files with 9 additions and 4 deletions
@@ -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 });