Menu

#190 NumericControl keys consuming

open
nobody
5
2012-12-13
2010-11-03
Dam Lus
No

Hi.

I noticed that NumericControl keyPressed event consumes Esc key, which is a problem if you want to add functionality like closing Frame when Esc key is pressed, application does not react because NumericControl blocks registered Esc KeyStroke. I think problem exists on currency and date controls also, but I didn' test it.
Problem does not exists on TextControl, so this makes whole application looks like it does not "work" all the time.
Please unblock it if possible.

Second thing I noticed about NumericControl is that it blocks button mnemonics, it is not listening for AltDown modifier and when parked on Numeric control button does not "click" but when parked on TextControl it works but also under certain conditions.
So please fix this one also if possible.

Third thing, when I set attribute maxCharacters let's say to 10, and I have 10 digits entered, I exit control, go back to control, everything is selected, now I want to overwrite whole input, I start entering numbers but nothing happens keyPress is consumed. Problem does not exists when number of enteret digits is less then atribute maxCharacters.
There is no check for selectionStart and selectionEnd(equal to maxCharacters) on inputControl, so first I have to press backspace and then I can type something. To me it's not friendly to user.

We have workaround for the above problems but I think it should be standard behavior.
So please fix this one if possible on all Controls if possible.

Thank you in advance.

Discussion