From bf60121b6515681ac505e80cb6824ba6bd978c29 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 6 Apr 2023 18:00:18 -0500 Subject: gocui: callbacks work via a channel Signed-off-by: Jeff Carr --- toolkit/gocui/structs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toolkit/gocui/structs.go') 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 -- cgit v1.2.3