Handling KeyDown+Click on UIElements

2 posts, 0 answers
  1. Michele
    Michele avatar
    426 posts
    Member since:
    Jun 2009

    Posted 26 Oct 2010 Link to this post

    I need to handle sometimes the Keydown +click on MenuItems or TreeView Items in order to open in a new tab instad of in the current one.... I've looked a bit around and found this Extension that won't work with telerik's component .... can you please provide me a working extension?


  2. George
    George avatar
    1332 posts

    Posted 28 Oct 2010 Link to this post

    Hi Paolo,

    I will paste my answer in this topic as well. I hope everyone who needs similar functionality will find the asnwer here.

    I would suggest you to use Keyboard.Modifiers property in order to get the pressed key. For example:

    if ((Keyboard.Modifiers & ModifierKeys.Control) > 0)

    For more information, please refer to the following link in msdn - http://msdn.microsoft.com/en-us/library/system.windows.input.keyboard.modifiers.aspx

    Sincerely yours,
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top