Slider takes fractional steps when using arrow keys despite integer sliderStep
Reported by Stéphane MOTTELET (@mottelet)
BUG DESCRIPTION:
----------------
When moving the knob with the mouse, a Slider widget is allowed to get an arbitrary value, e.g. min+x*SliderStep components with x *not* an integer, but when using arrow keys the value should strictly change by steps given by components of SliderStep, as said in the documentation.
HOW TO REPRODUCE THE BUG:
-------------------------
h=uicontrol('style','slider','min',1,'max',20,'sliderstep',[1 2],'Position',[20 20 400 20]);
h.Callback='h=gcbo();disp(h.Value)';
// Then type several times on the "Right arrow" key:
1.9994
2.9988
3.9982
4.9976
5.997
6.9964
7.9958