adjust keystrokes
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user