aspnetcore-js-devexpress-dot-richedit-f6a7cfe5.md
Contains a shortcut’s options.
export class ShortcutOptions
You can use an object of the ShortcutOptions type in the assignShortcut(shortcut, callback) method.
// adds the Ctrl+1 shortcut
var ctrlKey = true;
var shortcutOpts = new DevExpress.RichEdit.ShortcutOptions(
DevExpress.RichEdit.KeyCode.Key_1, ctrlKey);
richEdit.assignShortcut(shortcutOpts, function () { alert('your actions here'); });
Initializes a new instance of the ShortcutOptions class.
constructor(
keyCode: KeyCode,
ctrl?: boolean,
alt?: boolean,
shift?: boolean,
meta?: boolean
)
| Name | Type | Description |
|---|---|---|
| keyCode | KeyCode |
A key’s code.
| | ctrl | boolean |
true , to involve the Ctlr key in the shortcut; otherwise, false
| | alt | boolean |
true , to involve the Alt key in the shortcut; otherwise, false
| | shift | boolean |
true , to involve the Shift key in the shortcut; otherwise, false
| | meta | boolean |
true , to involve the Meta key in the shortcut; otherwise, false
|
Specifies whether the shortcut involves the Alt key.
alt: boolean
| Type | Description |
|---|---|
| boolean |
true , to involve the Alt key in the shortcut; otherwise, false
|
Specifies whether the shortcut involves the Ctrl key.
ctrl: boolean
| Type | Description |
|---|---|
| boolean |
true , to involve the Ctrl key in the shortcut; otherwise, false
|
Specifies a code of a key that the shortcut involves.
keyCode: KeyCode
| Type | Description |
|---|---|
| KeyCode |
A key’s code.
|
Specifies whether the shortcut involves the Meta key.
meta: boolean
| Type | Description |
|---|---|
| boolean |
true , to involve the Meta key in the shortcut; otherwise, false
|
The Meta key corresponds to the Windows key on Microsoft keyboards, and to the Command key on Apple keyboards.
Specifies whether the shortcut involves the Shift key.
shift: boolean
| Type | Description |
|---|---|
| boolean |
true , to involve the Shift key in the shortcut; otherwise, false
|