You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I can navigate to a Slider using Tab navigation and once the thumb has keyboard focus, I can move it using arrow keys, home, end, page up, page down etc, however I cannot submit the new value using the "Enter" key in order to cause a value change finished event. I think it is a bug that this event does not get fired in any way when using the keyboard to change the slider value. Like this it is relatively useless to use the onValueChangeFinished event as we cannot rely on it being called when using the keyboard. It makes sense to use it for mouse-based changing of the value as the onValueChange callback gets called very often (with non-step values, also) and it can make sense to react to the onValueChangeFinished event to do something once the user is done setting a new value. I think a solution would be to either fire that event after every change of the slider using the keyboard as updates cannot happen as frequently as with the mouse where also lots of values in between the actual steps get reported as events. Another solution would be to fire the event when the user confirms the new value using "Enter".
Affected platforms
Select one of the platforms below:
Desktop
Versions
Kotlin version*: 1.7.20
Compose Multiplatform version*: 1.3.0
OS version(s)* (required for Desktop and iOS issues): Linux
OS architecture (x86 or arm64): x86
JDK (for desktop issues): 17
To Reproduce
Steps and/or the code snippet to reproduce the behavior:
drag the slider with the mouse and observe both "changed: ..." and "finished: ..." output on stdout
move the slider with the arrows key and observer "changed: ..." output on stdout, but no "finished: ..." output, even when pressing "Enter" key
Expected behavior
It should be possible to trigger an onValueChangeFinished somehow using the keyboard. Either on "Enter" or just after every change of the value.
The text was updated successfully, but these errors were encountered:
Describe the bug
I can navigate to a Slider using Tab navigation and once the thumb has keyboard focus, I can move it using arrow keys, home, end, page up, page down etc, however I cannot submit the new value using the "Enter" key in order to cause a value change finished event. I think it is a bug that this event does not get fired in any way when using the keyboard to change the slider value. Like this it is relatively useless to use the onValueChangeFinished event as we cannot rely on it being called when using the keyboard. It makes sense to use it for mouse-based changing of the value as the onValueChange callback gets called very often (with non-step values, also) and it can make sense to react to the onValueChangeFinished event to do something once the user is done setting a new value. I think a solution would be to either fire that event after every change of the slider using the keyboard as updates cannot happen as frequently as with the mouse where also lots of values in between the actual steps get reported as events. Another solution would be to fire the event when the user confirms the new value using "Enter".
Affected platforms
Select one of the platforms below:
Versions
To Reproduce
Steps and/or the code snippet to reproduce the behavior:
Run this snippet
Expected behavior
It should be possible to trigger an onValueChangeFinished somehow using the keyboard. Either on "Enter" or just after every change of the value.
The text was updated successfully, but these errors were encountered: