[ColorPicker] R/G/B or H/S/V fields should not accept alphabetical characters - move to NumberBox?
#3,420 创建于 2020年10月13日
仓库指标
- Star
- (5,815 star)
- PR 合并指标
- (平均合并 5天 15小时) (30 天内合并 9 个 PR)
描述
Describe the bug The input fields in the ColorPicker control should only accept numerical values, not alphabetical values. When entering an alphabetical value and tabbing to the next inputfield will remove the incorrect character.
This is fine. However, Windows Narrator will still announce the alphabetical character and will not let the (visually impaired) user know that the value was incorrect.
We are running into this issue with PowerToys Settings: https://github.com/microsoft/PowerToys/issues/7085
Steps to reproduce the bug
- Turn on Narrator
- Navigate (with tab) to the Red field.
- Enter character (e.g. 'a')
- Narrator says A
- Tab to the next field.
Expected behavior Since these are numberfields, why not use the NumberBox control? This would be more approriate (we can set the min and max as well!) and improves accesbility.
Screenshots
