Skip to content

Commit

Permalink
Fixing GPO page focus.
Browse files Browse the repository at this point in the history
  • Loading branch information
Macmod committed Apr 29, 2024
1 parent d2793c9 commit 3b361b9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
22 changes: 12 additions & 10 deletions gpo.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,16 +162,18 @@ func initGPOPage() {
}

func gpoRotateFocus() {
//currentFocus := app.GetFocus()

/*
switch currentFocus {
case treePanel:
app.SetFocus(gpoAttrsPanel)
case gpoAttrsPanel:
app.SetFocus(treePanel)
}
*/
currentFocus := app.GetFocus()

switch currentFocus {
case gpoListPanel:
app.SetFocus(gpoTargetInput)
case gpoTargetInput:
app.SetFocus(gpoPath)
case gpoPath:
app.SetFocus(gpoLinksPanel)
default:
app.SetFocus(gpoListPanel)
}
}

func reloadGPOPage() {
Expand Down
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ func setPageFocus() {
case 3:
app.SetFocus(daclEntriesPanel)
case 4:
app.SetFocus(gpoListPanel)
case 5:
app.SetFocus(keybindingsPanel)
}
}
Expand Down

0 comments on commit 3b361b9

Please sign in to comment.