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

Function handleEscape

tui/interface.go:10–18  ·  view source on GitHub ↗
(returnFocus tview.Primitive)

Source from the content-addressed store, hash-verified

8)
9
10func handleEscape(returnFocus tview.Primitive) func(*tcell.EventKey) *tcell.EventKey {
11 return func(event *tcell.EventKey) *tcell.EventKey {
12 if event.Key() == tcell.KeyEscape {
13 app.SetRoot(appPanel, true).SetFocus(returnFocus)
14 return nil
15 }
16 return event
17 }
18}
19
20func getParentNode(node *tview.TreeNode, tree *tview.TreeView) *tview.TreeNode {
21 pathToCurrent := tree.GetPath(node)

Callers 11

handleAttrsKeyCtrlEFunction · 0.85
handleAttrsKeyCtrlNFunction · 0.85
openSearchBaseDNFormFunction · 0.85
openCreateZoneFormFunction · 0.85
openActionNodeFormFunction · 0.85
openUpdateUacFormFunction · 0.85
openCreateObjectFormFunction · 0.85
openAddMemberToGroupFormFunction · 0.85
openPasswordChangeFormFunction · 0.85
openMoveObjectFormFunction · 0.85
openExplorerSettingsFormFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected