Merge pull request #142 from kdheepak/remove-0-shortcut

This commit is contained in:
Dheepak Krishnamurthy 2021-03-18 09:04:25 -06:00 committed by GitHub
commit f04894d309
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 10 deletions

View file

@ -47,7 +47,7 @@ Keybindings for task report:
!: {string} - Custom shell command
0-9: {string} - Run user defined shortcuts
1-9: {string} - Run user defined shortcuts
c: context switcher menu - Open context switcher menu

View file

@ -103,7 +103,7 @@ Keybindings for task report:
`!`
: {string} - Custom shell command
`0-9`
`1-9`
: {string} - Run user defined shortcuts
`c`

View file

@ -1603,14 +1603,6 @@ impl TTApp {
self.mode = AppMode::TaskHelpPopup;
} else if input == self.keyconfig.filter {
self.mode = AppMode::TaskFilter;
} else if input == self.keyconfig.shortcut0 {
match self.task_shortcut(0) {
Ok(_) => self.update(true)?,
Err(e) => {
self.mode = AppMode::TaskError;
self.error = e;
}
}
} else if input == self.keyconfig.shortcut1 {
match self.task_shortcut(1) {
Ok(_) => self.update(true)?,