adjust keystrokes
This commit is contained in:
@@ -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, () =>
|
||||
|
||||
@@ -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