Update mouse support docs

This commit is contained in:
Trevor Slocum 2020-04-25 07:13:13 -07:00
parent 5bfb860744
commit 2ad097f1e7
2 changed files with 7 additions and 6 deletions

View File

@ -1,4 +1,4 @@
v1.4.5 (WIP)
v1.4.5 (2020-04-25)
- Add multithreading support
- Add ContextMenu (initially supported by List)
- Add List.Transform and TreeView.Transform

11
doc.go
View File

@ -57,17 +57,18 @@ Mouse support may be enabled by calling Application.EnableMouse before
Application.Run. See the example application provided with the
Application.EnableMouse documentation.
Double clicks are treated single clicks by default. Specify a maximum duration
between clicks with Application.SetDoubleClickInterval to enable double clicks.
A standard duration is provided as StandardDoubleClick.
Mouse events are passed to:
- The handler set with SetMouseCapture, which is reserved for use by application
developers to permanently intercept mouse events.
- The ObserveMouseEvent method of every widget under the mouse, bottom to top.
developers to permanently intercept mouse events. Return nil to stop
propagation.
- The MouseHandler method of the topmost widget under the mouse.
Event handlers may return nil to stop propagation.
Colors
Throughout this package, colors are specified using the tcell.Color type.