improve keystrokes, cleanup

This commit is contained in:
marlon-erler
2026-04-15 12:47:10 +00:00
parent ed8f523a89
commit 091c666ccc
31 changed files with 324 additions and 245 deletions
+6 -3
View File
@@ -27,7 +27,10 @@ export default class CoreViewModel {
history.pushState({ id: context.contextId }, "");
}
closeContext = (contextId: string, fromHistoryEvent: boolean = false): void => {
closeContext = (
contextId: string,
fromHistoryEvent: boolean = false,
): void => {
if (
!this.contexts
.map((context) => context.contextId)
@@ -81,7 +84,7 @@ export default class CoreViewModel {
window.onpopstate = () => {
this.closeContext(this.context.contextId, true);
}
};
}
// util
@@ -110,7 +113,7 @@ export class Context {
this.keystrokes.set(key, fn);
};
constructor(public contextDebugDescription: string) { }
constructor(public contextDebugDescription: string) {}
}
export class ContextHost<T> extends Context {