Edit this page

OnClientShortCutHit

The OnClientShortCutHit event raises when a given Keyboard ShortCut of the RadImageEditor was hit. The event can be cancelled.

The event handler receives the following parameters:

  1. The RadImageEditor client instance that fired the event.

  2. Event arguments object.

<telerik:RadImageEditor RenderMode="Lightweight" runat="server" ID="RadImageEditor1" OnClientShortCutHit="OnClientShortCutHit">
    <telerik:ImageEditorTool CommandName="AddText" ShortCut="A" />
</telerik:RadImageEditor>
<script type="text/javascript">
    function OnClientDialogLoaded(sender, eventArgs) {
        alert("OnClientShortCutHit event fired by RadImageEditor with ID: " + sender.get_id());
        eventArgs.set_cancel(true); //cancels the event
    }
</script>

See Also