SetApp sets the parent app reference for focus management.
(app *App)
| 43 | |
| 44 | // SetApp sets the parent app reference for focus management. |
| 45 | func (vd *VMDetails) SetApp(app *App) { |
| 46 | vd.app = app |
| 47 | |
| 48 | // Set up input capture for arrow keys and VI-like navigation (hjkl) |
| 49 | vd.SetInputCapture(createNavigationInputCapture(vd.app, vd.app.vmList, nil)) |
| 50 | } |
| 51 | |
| 52 | // Update fills the VM details table for the given VM. |
| 53 | func (vd *VMDetails) Update(vm *api.VM) { |