diff options
Diffstat (limited to 'toolkit')
| -rw-r--r-- | toolkit/nocui/event.go | 1 | ||||
| -rw-r--r-- | toolkit/nocui/stdin.go | 6 |
2 files changed, 6 insertions, 1 deletions
diff --git a/toolkit/nocui/event.go b/toolkit/nocui/event.go index ab2723f..73b7ff2 100644 --- a/toolkit/nocui/event.go +++ b/toolkit/nocui/event.go @@ -16,6 +16,7 @@ func (n *node) doWidgetClick() { // rootNode.dumpTree(true) case toolkit.Window: // setCurrentWindow(w) + n.doUserEvent() case toolkit.Tab: // setCurrentTab(w) case toolkit.Group: diff --git a/toolkit/nocui/stdin.go b/toolkit/nocui/stdin.go index ed71206..86ec664 100644 --- a/toolkit/nocui/stdin.go +++ b/toolkit/nocui/stdin.go @@ -22,12 +22,16 @@ func simpleStdin() { case "b": log(true, "show buttons") rootNode.showButtons() + case "d": + var a toolkit.Action + a.ActionType = toolkit.EnableDebug + callback <- a case "": fmt.Println("") fmt.Println("Enter:") fmt.Println("'l': list all widgets") fmt.Println("'b': for buttons") - fmt.Println("") + fmt.Println("'d': enable debugging") default: i, _ := strconv.Atoi(s) log(true, "got input:", i) |
