Organized approach to handle shortcuts based on currently focused panel
This commit is contained in:
@@ -76,3 +76,12 @@ func loadProject(idx int) {
|
||||
|
||||
contents.RemoveItem(detailPane)
|
||||
}
|
||||
|
||||
func handleProjectPaneShortcuts(event *tcell.EventKey) *tcell.EventKey {
|
||||
switch event.Rune() {
|
||||
case 'n':
|
||||
app.SetFocus(newProject)
|
||||
}
|
||||
|
||||
return event
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user