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

Disable Keyboard support

1 Answer 27 Views
Editor
This is a migrated thread and some comments may be shown as answers.
David Ahlbaum
Top achievements
Rank 2
David Ahlbaum asked on 09 Jul 2010, 01:27 PM
Hi!

Is there a way to disable the keyboard support in the editor?

To be precise: I am fine with Ctrl+U and such but I wan´t Ctrl+S to be handled by my app, which it does unless the editor has focus.

Regards /David

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 09 Jul 2010, 02:55 PM
Hello David,

You should not experience this problem because the Ctrl+S shortcut is not handled by RadEditor. If you press Ctrl+S in Firefox the Save As browser popup will appear. Basically you can disable the schortcuts of RadEditor commands using the code from this article: Disabling Keyboard Shortcuts, but the Ctrl+S shortcut is not assigned to any command.

The content area of RadEditor is an editable IFRAME element. You can attach to the keydown event, check for the CTRL key and S key press and execute your custom save code. See this article: attachEventHandler.


Kind regards,
Rumen
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
Editor
Asked by
David Ahlbaum
Top achievements
Rank 2
Answers by
Rumen
Telerik team
Share this question
or