MCPcopy
hub / github.com/g3n/engine / OnFocusLost

Method OnFocusLost

gui/edit.go:114–119  ·  view source on GitHub ↗

LostKeyFocus satisfies the IPanel interface and is called by gui root container when the panel loses the key focus

(evname string, ev interface{})

Source from the content-addressed store, hash-verified

112// LostKeyFocus satisfies the IPanel interface and is called by gui root
113// container when the panel loses the key focus
114func (ed *Edit) OnFocusLost(evname string, ev interface{}) {
115
116 ed.focus = false
117 ed.update()
118 Manager().ClearTimeout(ed.blinkID)
119}
120
121// CursorPos sets the position of the cursor at the
122// specified column if possible

Callers

nothing calls this directly

Calls 3

updateMethod · 0.95
ManagerFunction · 0.85
ClearTimeoutMethod · 0.80

Tested by

no test coverage detected