| Hot Keys definition
|
| |
|
<%@ Register TagPrefix="ed" Namespace="OboutInc.Editor" Assembly="obout_Editor" %>
|
By default, in Design mode, you can use some hot keys (Ctrl-B, Ctrtl-C and so on).
You can suppress using of some default hot keys and define your own hot keys.
For this purpose you should use inner HotKeys collection.
| |
|
Editor's object for HotKeys collection
OboutInc.Editor.HotKey
|
Public properties:
-
Char - char. Key pressed character
-
Ctrl - bool. Key Ctrl is down. Default false. Optional
-
Alt - bool. Key Alt is down. Default false. Optional
-
Shift - bool. Key Shift is down. Default false. Optional
-
Function - string. Name of JS function to be called on this hot key
or null if this hot key is suppressed
|
|
|
|
|
Sample ASP.NET
<!-- Default Ctrl-B use (bold) is suppressed here -->
<ed:Editor id="editor" runat="server"> <HotKeys> <ed:HotKey Function="altS" Alt="true" Char="s" /> <ed:HotKey Function="null" Ctrl="true" Char="b" /> </HotKeys> </ed:Editor> ... <script type="text/JavaScript">
function altS(editor) { editor.spellCheck(); } // Spell checker is called on Alt-S pressed
</script>
See hot_keys.aspx working example in downloaded zip file.
| |
|
| "I like the controls you guys have...nice stuff." |
Paul Millefolie |
|
| |
|