Skip to main content

ASPxClientScheduler.Shortcut Event

Occurs when an end-user presses a keyboard shortcut.

Declaration

Shortcut: ASPxClientEvent<ShortcutEventHandler<ASPxClientScheduler>>

Event Data

The Shortcut event's data class is ShortcutEventArgs. 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.

Example

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.commandName == "myTab") {

        // Your custom logic to process a keyboard shortcut. 

        args.handled = true;
    }
}
See Also