This is a migrated thread and some comments may be shown as answers.

Detecting shift/control key

1 Answer 64 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Joeyjoejoe jr.
Top achievements
Rank 1
Joeyjoejoe jr. asked on 25 Jan 2011, 05:27 PM
I am making a virtual keyboard in xaml/cs and running into a few problems.

Shift/control. Currently I detect keys by having the user type in a textbox. Depending on the key entered into the textbox I will highlight the appropriate key and delete anything in the textbox. This runs into the problem of shift and control not actually typing a character. How might I detect shift/control?

I also have a similar problem with delete. I had an idea of defaulting the textbox to a space, so I can see the space go away and know there was a delete pressed. However the text curser keeps going to the beginning of the textbox before the space. Any method of forcing the curser to the end of the line?

1 Answer, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 26 Jan 2011, 05:03 PM
Hi Joeyjoejoe jr.,

You may try checking the Keyboard.Modifiers property to see which are the modifer keys that are currently pressed.

Sincerely,
Ivan Ivanov
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
General Discussions
Asked by
Joeyjoejoe jr.
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
Share this question
or