Detecting shift/control key

2 posts, 0 answers
  1. Joeyjoejoe jr.
    Joeyjoejoe jr. avatar
    2 posts
    Member since:
    Jan 2011

    Posted 25 Jan 2011 Link to this post

    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?
  2. Ivan Ivanov
    Ivan Ivanov avatar
    1195 posts

    Posted 26 Jan 2011 Link to this post

    Hi Joeyjoejoe jr.,

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

    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>>
Back to Top