improve UI

This commit is contained in:
marlon-erler
2026-09-30 15:34:42 +02:00
parent 71b7983a1a
commit ec135e6d26
13 changed files with 203 additions and 168 deletions
+14 -3
View File
@@ -52,12 +52,23 @@ export default class CoreViewModel {
)
return;
let exitNext: boolean = false;
while (this.contexts.length > 0) {
const currentContext: Context | undefined = this.context;
if (!currentContext) return;
currentContext.handleContextClose(fromHistoryEvent);
const response = currentContext.handleContextClose(fromHistoryEvent);
if (response == false) return;
this.contextStack.delete(currentContext.contextId);
if (currentContext.contextId == contextId) break;
if (response == true) {
exitNext = true;
continue;
} else if (exitNext == true) {
break
}
else if (currentContext.contextId == contextId) {
break;
}
}
};
@@ -196,7 +207,7 @@ export class Context {
};
close = (): void => {};
handleContextClose = (fromHistoryEvent: boolean): void => {};
handleContextClose = (fromHistoryEvent: boolean): void|boolean=> {};
registerKeyStroke = (key: string, fn: () => void): void => {
this.keystrokes.set(key, fn);