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

Function searchPageKeyHandler

tui/search.go:593–607  ·  view source on GitHub ↗
(event *tcell.EventKey)

Source from the content-addressed store, hash-verified

591}
592
593func searchPageKeyHandler(event *tcell.EventKey) *tcell.EventKey {
594 if event.Key() == tcell.KeyTab || event.Key() == tcell.KeyBacktab {
595 searchRotateFocus()
596 return nil
597 }
598
599 switch event.Key() {
600 case tcell.KeyCtrlF:
601 openFinder(&searchCache, "Object Search")
602 case tcell.KeyCtrlB:
603 openSearchBaseDNForm()
604 }
605
606 return event
607}
608
609func searchRotateFocus() {
610 currentFocus := app.GetFocus()

Callers

nothing calls this directly

Calls 3

searchRotateFocusFunction · 0.85
openFinderFunction · 0.85
openSearchBaseDNFormFunction · 0.85

Tested by

no test coverage detected