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

AccessKey issue

5 Answers 66 Views
Window
This is a migrated thread and some comments may be shown as answers.
Jamie
Top achievements
Rank 1
Jamie asked on 27 Sep 2010, 04:54 PM
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.

5 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 30 Sep 2010, 11:31 AM
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
0
Jamie
Top achievements
Rank 1
answered on 30 Sep 2010, 01:05 PM
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.
0
Georgi Tunev
Telerik team
answered on 30 Sep 2010, 02:14 PM
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
0
Jamie
Top achievements
Rank 1
answered on 30 Sep 2010, 02:56 PM
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.
0
Georgi Tunev
Telerik team
answered on 04 Oct 2010, 09:14 AM
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
Tags
Window
Asked by
Jamie
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Jamie
Top achievements
Rank 1
Share this question
or