From 7813fc126dee96c1fe901b4ba5fe7fd252804806 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 7 Feb 2025 02:34:40 -0600 Subject: maybe fixed wierd clicks on window drag --- eventBindings.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'eventBindings.go') diff --git a/eventBindings.go b/eventBindings.go index 16ef0cf..5b39457 100644 --- a/eventBindings.go +++ b/eventBindings.go @@ -99,7 +99,12 @@ func addDropdown() *tree.Node { // use this to test code ideas // put whatever you want here and hit '2' to activate it func theNotsure(g *gocui.Gui, v *gocui.View) error { - log.Info("got keypress 2. now what?") + if me.dark { + me.dark = false + } else { + me.dark = true + } + log.Info("got keypress 2. now what? dark =", me.dark) return nil } -- cgit v1.2.3