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
+9 -6
View File
@@ -2257,7 +2257,7 @@
this.connectionModel = connectionModel2; this.connectionModel = connectionModel2;
this.chatListModel = chatListModel2; this.chatListModel = chatListModel2;
this.fileTransferModel = fileTransferModel2; this.fileTransferModel = fileTransferModel2;
this.BUILD = "Build 26.04.14.A"; this.BUILD = "Build 26.04.14.B";
// CONTEXT // CONTEXT
this.contextStack = /* @__PURE__ */ new Map(); this.contextStack = /* @__PURE__ */ new Map();
this.closeContext = (contextId) => { this.closeContext = (contextId) => {
@@ -2747,8 +2747,8 @@
); );
this.showToday(); this.showToday();
this.registerKeyStroke("-" /* Reset */, this.showToday); this.registerKeyStroke("-" /* Reset */, this.showToday);
this.registerKeyStroke("p", this.showNextMonth); this.registerKeyStroke("k", this.showPreviousMonth);
this.registerKeyStroke("o", this.showPreviousMonth); this.registerKeyStroke("l", this.showNextMonth);
this.registerKeyStroke(";" /* Create */, this.createEvent); this.registerKeyStroke(";" /* Create */, this.createEvent);
this.chatViewModel.registerContext("calendar" /* Calendar */, this); this.chatViewModel.registerContext("calendar" /* Calendar */, this);
} }
@@ -3382,6 +3382,9 @@
this.registerKeyStroke("," /* Settings */, this.showSettings); this.registerKeyStroke("," /* Settings */, this.showSettings);
this.registerKeyStroke("enter" /* Apply */, this.hideSettings); this.registerKeyStroke("enter" /* Apply */, this.hideSettings);
this.registerKeyStroke(";" /* Create */, this.createTask); this.registerKeyStroke(";" /* Create */, this.createTask);
this.registerKeyStroke("j", () => this.selectedPage.value = "list" /* List */);
this.registerKeyStroke("k", () => this.selectedPage.value = "kanban" /* Kanban */);
this.registerKeyStroke("l", () => this.selectedPage.value = "status-grid" /* StatusGrid */);
this.taskPageViewModel.registerContext(this.boardInfo.fileId, this); this.taskPageViewModel.registerContext(this.boardInfo.fileId, this);
} }
}; };
@@ -3658,12 +3661,12 @@
this.subscribeReadStatus(); this.subscribeReadStatus();
this.registerKeyStroke(" " /* Home */, this.close); this.registerKeyStroke(" " /* Home */, this.close);
this.registerKeyStroke( this.registerKeyStroke(
"h", "u",
() => this.openPage("messages" /* Messages */) () => this.openPage("messages" /* Messages */)
); );
this.registerKeyStroke("j", () => this.openPage("tasks" /* Tasks */)); this.registerKeyStroke("i", () => this.openPage("tasks" /* Tasks */));
this.registerKeyStroke( this.registerKeyStroke(
"k", "o",
() => this.openPage("calendar" /* Calendar */) () => this.openPage("calendar" /* Calendar */)
); );
this.registerKeyStroke( this.registerKeyStroke(
+3 -3
View File
@@ -197,11 +197,11 @@ export default class ChatViewModel extends ContextHost<ChatPageTypes> {
// keystrokes // keystrokes
this.registerKeyStroke(CommonKeys.Home, this.close); this.registerKeyStroke(CommonKeys.Home, this.close);
this.registerKeyStroke("h", () => this.registerKeyStroke("u", () =>
this.openPage(ChatPageTypes.Messages), this.openPage(ChatPageTypes.Messages),
); );
this.registerKeyStroke("j", () => this.openPage(ChatPageTypes.Tasks)); this.registerKeyStroke("i", () => this.openPage(ChatPageTypes.Tasks));
this.registerKeyStroke("k", () => this.registerKeyStroke("o", () =>
this.openPage(ChatPageTypes.Calendar), this.openPage(ChatPageTypes.Calendar),
); );
this.registerKeyStroke(CommonKeys.Settings, () => 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.Apply, this.hideSettings);
this.registerKeyStroke(CommonKeys.Create, this.createTask); 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); this.taskPageViewModel.registerContext(this.boardInfo.fileId, this);
} }
} }
+2 -2
View File
@@ -212,8 +212,8 @@ export default class CalendarPageViewModel extends TaskContainingPageViewModel {
// keystrokes // keystrokes
this.registerKeyStroke(CommonKeys.Reset, this.showToday); this.registerKeyStroke(CommonKeys.Reset, this.showToday);
this.registerKeyStroke("p", this.showNextMonth); this.registerKeyStroke("k", this.showPreviousMonth);
this.registerKeyStroke("o", this.showPreviousMonth); this.registerKeyStroke("l", this.showNextMonth);
this.registerKeyStroke(CommonKeys.Create, this.createEvent); this.registerKeyStroke(CommonKeys.Create, this.createEvent);
this.chatViewModel.registerContext(ChatPageTypes.Calendar, this); this.chatViewModel.registerContext(ChatPageTypes.Calendar, this);