The requested page is not available for the requested platform. You are viewing the content for Default platform.

ASPxClientScheduler.Shortcut Event

Occurs when an end-user presses a keyboard shortcut.

Declaration

Shortcut: ASPxClientEvent<ShortcutEventHandler<ASPxClientScheduler>>

Event Data

The Shortcut event handler receives an argument of the ShortcutEventArgs type. The following properties provide information specific to this event.

Property Description
commandName Gets the name of a command associated with the keyboard shortcut.
handled Gets or sets whether an event is handled, and that default actions are not required.
htmlEvent Gets an object containing information about a keyboard shortcut event.

Examples

This code example demonstrates how to use the ASPxScheduler API to define a new keyboard shortcut and associate it with custom client-side logic.

function onShortcut(scheduler, args) {
    if (args.shortcutName == "customShortcut") {

        // Your custom logic to process a keyboard shortcut. 

        args.handled = true;
    }
}
See Also