AccessKey issue

6 posts, 0 answers
  1. Jamie
    Jamie avatar
    15 posts
    Member since:
    May 2009

    Posted 27 Sep 2010 Link to this post

    When I have a RadWindow modal window open that has a RadToolBar, and press the access key for a RadToolBar on the parent form, that button is getting executed, rather than being ignored because there's a modal open.  Is there a way to prevent this?

    Thanks.
  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 30 Sep 2010 Link to this post

    Hello Jamie,

    As noted in the documentation and in the demos, RadWindow's modal feature cannot fully block the interaction with the page below and there are ways to work around it. Using an access key is one way to do that and the only thing I could suggest is to use OnClientShow and OnClientClose event handlers to disable the access keys when a RadWindow is shown.


    All the best,
    Georgi Tunev
    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
  3. Jamie
    Jamie avatar
    15 posts
    Member since:
    May 2009

    Posted 30 Sep 2010 Link to this post

    Thanks for the reply, Georgi.  I've scoured the documentation, and will continue to do so, but how do I actually disable the access keys?  I'm not seeing anything like a set_accessKey method.
  4. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 30 Sep 2010 Link to this post

    Hello Jamie,

    There is no such API in our control as such functionality is out of RadWindow's scope. What I suggested is to use some JavaScript code to intercept certain keyboard combinations and cancel them while the RadWindow is active. Here are some resources that might help you in this task:
    http://www.openjs.com/scripts/events/keyboard_shortcuts/
    http://www.scottklarr.com/topic/126/how-to-create-ctrl-key-shortcuts-in-javascript/

    All the best,
    Georgi Tunev
    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
  5. Jamie
    Jamie avatar
    15 posts
    Member since:
    May 2009

    Posted 30 Sep 2010 Link to this post

    Awesome, thanks for the links!  I'll take a look.  Is Telerik planning to add in this functionality at any time, though?  It would make sense that when a modal dialog is raised, the parent form should not be responding to keyboard events at all.  I think even if I had to define the keystrokes I wanted to "block", it'd be a win.

    <telerik:RadWindowManager ...>
       <Windows>
          ...
       </Windows>
       <CanceledAccessKeys>
          <AccessKey Key="R" />
       </CancledAccessKeys>
    </telerik:RadWindowManager>

    Just a thought.  :)   Again, thanks for the help and the links.
  6. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 04 Oct 2010 Link to this post

    Hello Jamie,

    Thanks for the suggestion - I logged it for future consideration and updated your points.


    Regards,
    Georgi Tunev
    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