diff --git a/dist/index.js b/dist/index.js index 6d30b388..de2c1c92 100644 --- a/dist/index.js +++ b/dist/index.js @@ -2257,7 +2257,7 @@ this.connectionModel = connectionModel2; this.chatListModel = chatListModel2; this.fileTransferModel = fileTransferModel2; - this.BUILD = "Build 26.04.14.A"; + this.BUILD = "Build 26.04.14.B"; // CONTEXT this.contextStack = /* @__PURE__ */ new Map(); this.closeContext = (contextId) => { @@ -2747,8 +2747,8 @@ ); this.showToday(); this.registerKeyStroke("-" /* 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(";" /* Create */, this.createEvent); this.chatViewModel.registerContext("calendar" /* Calendar */, this); } @@ -3382,6 +3382,9 @@ this.registerKeyStroke("," /* Settings */, this.showSettings); this.registerKeyStroke("enter" /* Apply */, this.hideSettings); 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); } }; @@ -3658,12 +3661,12 @@ this.subscribeReadStatus(); this.registerKeyStroke(" " /* Home */, this.close); this.registerKeyStroke( - "h", + "u", () => this.openPage("messages" /* Messages */) ); - this.registerKeyStroke("j", () => this.openPage("tasks" /* Tasks */)); + this.registerKeyStroke("i", () => this.openPage("tasks" /* Tasks */)); this.registerKeyStroke( - "k", + "o", () => this.openPage("calendar" /* Calendar */) ); this.registerKeyStroke( diff --git a/src/ViewModel/Chat/chatViewModel.ts b/src/ViewModel/Chat/chatViewModel.ts index a5279c1b..cd9501ac 100644 --- a/src/ViewModel/Chat/chatViewModel.ts +++ b/src/ViewModel/Chat/chatViewModel.ts @@ -197,11 +197,11 @@ export default class ChatViewModel extends ContextHost { // 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, () => diff --git a/src/ViewModel/Pages/boardViewModel.ts b/src/ViewModel/Pages/boardViewModel.ts index 174031b3..39a7295d 100644 --- a/src/ViewModel/Pages/boardViewModel.ts +++ b/src/ViewModel/Pages/boardViewModel.ts @@ -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); } } diff --git a/src/ViewModel/Pages/calendarPageViewModel.ts b/src/ViewModel/Pages/calendarPageViewModel.ts index 35d91627..99385e30 100644 --- a/src/ViewModel/Pages/calendarPageViewModel.ts +++ b/src/ViewModel/Pages/calendarPageViewModel.ts @@ -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);