MCPcopy Create free account
hub / github.com/Macmod/godap / daclPageKeyHandler

Function daclPageKeyHandler

tui/dacl.go:575–598  ·  view source on GitHub ↗
(event *tcell.EventKey)

Source from the content-addressed store, hash-verified

573}
574
575func 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
600func daclEntriesPanelKeyHandler(event *tcell.EventKey) *tcell.EventKey {
601 if sd == nil {

Callers

nothing calls this directly

Calls 4

daclRotateFocusFunction · 0.85
loadChangeOwnerFormFunction · 0.85
exportCurrentSDFunction · 0.85

Tested by

no test coverage detected