Return self
parent
74b2573bf9
commit
84d2372c82
|
@ -181,10 +181,11 @@ func (a *Application) SetScreen(screen tcell.Screen) *Application {
|
|||
}
|
||||
|
||||
// EnableMouse enables mouse events.
|
||||
func (a *Application) EnableMouse() {
|
||||
func (a *Application) EnableMouse() *Application {
|
||||
a.Lock()
|
||||
a.enableMouse = true
|
||||
a.Unlock()
|
||||
return a
|
||||
}
|
||||
|
||||
// Run starts the application and thus the event loop. This function returns
|
||||
|
|
Loading…
Reference in New Issue