Keyboard controls activate on key down instead of key up

This commit is contained in:
2024-08-16 15:31:48 -04:00
parent 43ec7a0311
commit 114cbb346d
3 changed files with 3 additions and 3 deletions

View File

@@ -172,12 +172,12 @@ func (this *Swatch) userSetValue (value color.Color) {
func (this *Swatch) handleKeyDown (key input.Key, numberPad bool) bool {
if key != input.KeyEnter && key != input.Key(' ') { return false }
this.Choose()
return true
}
func (this *Swatch) handleKeyUp (key input.Key, numberPad bool) bool {
if key != input.KeyEnter && key != input.Key(' ') { return false }
this.Choose()
return true
}