From 6fad52b33599c2533d1f3f38490612f6c59f3d3c Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Fri, 17 May 2024 01:09:59 -0400 Subject: [PATCH] Slider broadcasts slide event when manipulated with key presses --- slider.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/slider.go b/slider.go index f2ebf32..347f5fa 100644 --- a/slider.go +++ b/slider.go @@ -98,16 +98,20 @@ func (this *Slider) handleKeyDown (key input.Key, numpad bool) { } else { this.SetValue(this.Value() - increment) } + this.on.slide.Broadcast() case input.KeyDown, input.KeyRight: if this.Modifiers().Alt { this.SetValue(1) } else { this.SetValue(this.Value() + increment) } + this.on.slide.Broadcast() case input.KeyHome: this.SetValue(0) + this.on.slide.Broadcast() case input.KeyEnd: this.SetValue(1) + this.on.slide.Broadcast() } }