summaryrefslogtreecommitdiff
path: root/toolkit/nocui/common.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-04-27 22:21:31 -0500
committerJeff Carr <[email protected]>2023-04-27 22:21:31 -0500
commita1deb9845593e211a1ce6fe4a7f88bbe5acd9981 (patch)
treee355d637606f34b2a17da4e9d84292596e175166 /toolkit/nocui/common.go
parent87b62c98a6ebd9d0e48850d1710de7f39aba41c8 (diff)
nocui: simulates button clicks
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/nocui/common.go')
-rw-r--r--toolkit/nocui/common.go19
1 files changed, 0 insertions, 19 deletions
diff --git a/toolkit/nocui/common.go b/toolkit/nocui/common.go
index 2e0ffdc..e68308d 100644
--- a/toolkit/nocui/common.go
+++ b/toolkit/nocui/common.go
@@ -58,22 +58,3 @@ func addWidget(a *toolkit.Action) *node {
}
return n
}
-
-func (n *node) doUserEvent() {
- if (callback == nil) {
- log(logError, "doUserEvent() callback == nil", n.WidgetId)
- return
- }
- var a toolkit.Action
- a.WidgetId = n.WidgetId
- a.Name = n.Name
- a.Text = n.Text
- a.S = n.S
- a.I = n.I
- a.B = n.B
- a.ActionType = toolkit.User
- log(logInfo, "doUserEvent() START: send a user event to the callback channel")
- callback <- a
- log(logInfo, "doUserEvent() END: sent a user event to the callback channel")
- return
-}