(event *tcell.EventKey)
| 573 | } |
| 574 | |
| 575 | func daclPageKeyHandler(event *tcell.EventKey) *tcell.EventKey { |
| 576 | if event.Key() == tcell.KeyTab || event.Key() == tcell.KeyBacktab { |
| 577 | daclRotateFocus() |
| 578 | return nil |
| 579 | } |
| 580 | |
| 581 | if sd == nil { |
| 582 | return event |
| 583 | } |
| 584 | |
| 585 | switch event.Key() { |
| 586 | case tcell.KeyCtrlO: |
| 587 | loadChangeOwnerForm() |
| 588 | return nil |
| 589 | case tcell.KeyCtrlK: |
| 590 | loadChangeControlFlagsForm() |
| 591 | return nil |
| 592 | case tcell.KeyCtrlS: |
| 593 | exportCurrentSD() |
| 594 | return nil |
| 595 | } |
| 596 | |
| 597 | return event |
| 598 | } |
| 599 | |
| 600 | func daclEntriesPanelKeyHandler(event *tcell.EventKey) *tcell.EventKey { |
| 601 | if sd == nil { |
nothing calls this directly
no test coverage detected