diff options
| author | Jeff Carr <[email protected]> | 2023-04-06 18:00:18 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-04-06 18:00:18 -0500 |
| commit | bf60121b6515681ac505e80cb6824ba6bd978c29 (patch) | |
| tree | cdb87a9169185da1c33827702ef1b405c3d1ed00 /toolkit/gocui/structs.go | |
| parent | 70f8797122741ef61951d3400317173a1d9974da (diff) | |
gocui: callbacks work via a channel
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/gocui/structs.go')
| -rw-r--r-- | toolkit/gocui/structs.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toolkit/gocui/structs.go b/toolkit/gocui/structs.go index f83622a..8170416 100644 --- a/toolkit/gocui/structs.go +++ b/toolkit/gocui/structs.go @@ -23,7 +23,7 @@ type config struct { rootNode *cuiWidget // the base of the binary tree. it should have id == 0 ctrlDown *cuiWidget // shown if you click the mouse when the ctrl key is pressed - callback func(int) + callback chan toolkit.Action helpLabel *gocui.View defaultBehavior bool |
