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

Disable @ keyboard shortcut

10 Answers 226 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Lars
Top achievements
Rank 1
Lars asked on 12 Jan 2009, 11:38 AM
Hi.

How can I disable the shortcut for when people want to write @?
The problem is that I have a textbox where people can write an email adress, but when they press the "Alt Gr" key and "2" key, for danish @, the cursor leaves the textbox and shows some shortcuts in the RadRibbonBar.

Anybody have any ideas?

Regards and happy coding
LP

10 Answers, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 12 Jan 2009, 04:44 PM
Hello Lars,

Thanks for writing. You have to set the EnableKeyMap property of the RadRibbonBar to false in the constructor of your form or somewhere else that you deem appropriate.

Currently, there is an issue with the serialization of the EnableKeyMap property, so setting it through the Visual Studio property grid will have no effect.

Please write back if you have additional questions or suggestions.

Greetings,
Victor
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Lars
Top achievements
Rank 1
answered on 12 Jan 2009, 09:18 PM
Hi Victor.

I have tried to hard code it and I have tried to set it in the properties windows of the form, and that did not disable it either.

Do you have any other ideas?

Regards and happy coding
LP
0
Victor
Telerik team
answered on 15 Jan 2009, 01:53 PM
Hello Lars,

I am afraid that everything works fine here. I installed Danish in the language bar, created a form with a RadRibbonBar and a text box, and set RadRibbonBar EnableKeyMap property to false. While typing in the text box in Danish, I press alt + @ and the shortcuts do not appear, but @ character appears and the text box retains its focus. This is very strange. Could you please paste some code showing how you are configuring the ribbon? Thank you very much in advance.

Best wishes,
Victor
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Lars
Top achievements
Rank 1
answered on 02 Feb 2009, 07:28 PM
Dear Victor.

Sorry about the late reply.
I have found the way to get the Ribbonbar to act the way i'm having touble with.

When you add a tab or two to the Ribbenbar, the focus will move from the textbox you are writing in.

Hope this will bring up this "error"..

Regards and happy coding
LP
0
Victor
Telerik team
answered on 05 Feb 2009, 05:53 PM
Hello Lars,

Thank you for writing.

I am attaching a sample project. Please write me back me if the incorrect behavior occurs on your machine. This project works fine on my side. I added a few tabs as you pointed out. Please note that you should set the EnableKeyMap in the form constructor or in the Form_Load for example. If you hard code it explicitly in the Form.Designer.cs file, it will be vanished.

Please write back when you have tried the project. I am eager to solve this little issue.

Kind regards,
Victor
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Lars
Top achievements
Rank 1
answered on 05 Feb 2009, 08:13 PM
Hi Victor.

Yes, it's kind of funny this little problem.
I can run the program that you wrote from the debug folder, but if I open the project, I get compiler errors regarding some "ButtonElement" definition that does not exist.
And you are correct, when I run the program from the debug folder, I get notthing when I press to write "@".

But how can I send you a program to you?

I have just tried to make the same program as you, also in C# (but also tried in VB) and there I get the same thing where I lose focus.

By the way, the reason that I want to send you the code, is that I think we are using different versions of RadTeletik components...
When I look at my RadRibbonBar, I can see Version 6.0.1.0
Is that the same as yours?

Regards and happy coding
LP
0
Victor
Telerik team
answered on 06 Feb 2009, 04:20 PM
Hello Lars,

Thank you for your question.

I was able to reproduce the issue when using 6.0.1.0 version (Q1 2008). However, it is already addressed in Q3 2008 as well as in our latest Q3 2008 SP2 (v8.2.0.0). You should just download the latest version from our web site. If you are a trial user, download the latest trial package. However, if the company you work for has a license, please ask the purchase holder to add you as a License Developer to the purchase. This will give you full access to the products your company has purchased, to our downloads section, and to our support ticketing system. All your questions will be reviewed according to the license you have. More information on License Developers you can find here: www.telerik.com/faq. In addition, when sending us a support tickets, you will be able to specify which version you are currently using. This will help us providing you with more accurate assistance.

For additional information about how to download the latest controls' package, please refer to the following Knowledge Base article: Updating RadControls for WinForms to another version or license.

I hope this helps. If you have additional questions, feel free to contact me.

Best wishes,
Victor
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Lars
Top achievements
Rank 1
answered on 11 Feb 2009, 01:52 PM
Hi Victor.

Wow that helped in my test application...
Thank you so much.

But in my application where it is being used, I have an MDI container as main form, and in that form I run another form inside it.
In the inder form, i have an edit form (3th form) and in there I still lose focus when pressing Alt gr...
the to forms inside the main MDI container form has the main form as mdi parent, so they should have relations to the main form.

One solution could be to move the edit part inside the first mdi form, but it look pretty cool in the other way.

Regards and happy coding
LP
0
Victor
Telerik team
answered on 17 Feb 2009, 09:24 AM
Hello Lars,

Thank you for writing. I am sending you a sample application. Please tell me if the app looks like the app you described in your previous post. If so, tell me if the text box loses focus. It does not lose focus here. I am looking forward to your reply.

Sincerely yours,
Victor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Lars
Top achievements
Rank 1
answered on 25 Feb 2009, 11:26 PM
Hi Victor,
Now I have found it...
It was the compiled project, that was using the old Telerik Q1, even after recompiling.
So I found a tool from the new Q3, "start - Programs - Telerik - RadControls for WinForms Q3 2008 SP2 - Tools - Project update utility.exe" and it fixed the problem so the project got compiled with the new Q3...

Thank you so much for all your help Victor!

Regards and happy coding
LP
Tags
RibbonBar
Asked by
Lars
Top achievements
Rank 1
Answers by
Victor
Telerik team
Lars
Top achievements
Rank 1
Share this question
or