adjust keystrokes

This commit is contained in:
marlon-erler
2026-04-14 09:26:25 +00:00
parent 0c525de404
commit ce77af0094
4 changed files with 18 additions and 11 deletions
+3 -3
View File
@@ -197,11 +197,11 @@ export default class ChatViewModel extends ContextHost<ChatPageTypes> {
// keystrokes
this.registerKeyStroke(CommonKeys.Home, this.close);
this.registerKeyStroke("h", () =>
this.registerKeyStroke("u", () =>
this.openPage(ChatPageTypes.Messages),
);
this.registerKeyStroke("j", () => this.openPage(ChatPageTypes.Tasks));
this.registerKeyStroke("k", () =>
this.registerKeyStroke("i", () => this.openPage(ChatPageTypes.Tasks));
this.registerKeyStroke("o", () =>
this.openPage(ChatPageTypes.Calendar),
);
this.registerKeyStroke(CommonKeys.Settings, () =>
+4
View File
@@ -319,6 +319,10 @@ export default class BoardViewModel extends TaskContainingPageViewModel {
this.registerKeyStroke(CommonKeys.Apply, this.hideSettings);
this.registerKeyStroke(CommonKeys.Create, this.createTask);
this.registerKeyStroke("j", ()=>this.selectedPage.value = BoardPageTypes.List);
this.registerKeyStroke("k", ()=>this.selectedPage.value = BoardPageTypes.Kanban);
this.registerKeyStroke("l", ()=>this.selectedPage.value = BoardPageTypes.StatusGrid);
this.taskPageViewModel.registerContext(this.boardInfo.fileId, this);
}
}
+2 -2
View File
@@ -212,8 +212,8 @@ export default class CalendarPageViewModel extends TaskContainingPageViewModel {
// keystrokes
this.registerKeyStroke(CommonKeys.Reset, this.showToday);
this.registerKeyStroke("p", this.showNextMonth);
this.registerKeyStroke("o", this.showPreviousMonth);
this.registerKeyStroke("k", this.showPreviousMonth);
this.registerKeyStroke("l", this.showNextMonth);
this.registerKeyStroke(CommonKeys.Create, this.createEvent);
this.chatViewModel.registerContext(ChatPageTypes.Calendar, this);