I am working on a project and I have some textboxes some of them digits only but in xaml inputscope=”number” the virtual keyboard appears with some characters too like “[ + % ]” ….
I used key.down event but shift+4 (+) is passed the exeception
I searched and found control.modiferKey but its not on metro app
I think that
if keyDown is shift boolean = true
if keyUp boolean = false
if boolean == true and digit pressed do nothing
but there must be a simple way
can anyone help me?
Add this code to the constructor it will handle a global key down and key
heres their events
you can ahndle your own logic inside this event. Most of the ky down event can be captured like dis … Please try implementing the code and see