IModelAction.Shortcut Property
Defines the keyboard shortcut that executes the current Action.
Namespace: DevExpress.ExpressApp.Model
Assembly: DevExpress.ExpressApp.v25.1.dll
NuGet Package: DevExpress.ExpressApp
Declaration
Property Value
Type | Description |
---|---|
String | A string that specifies the current Action’s shortcut. |
Remarks
Note
XAF ASP.NET Web Forms applications do not support Action Shortcuts.
You can change or look up the Shortcut
property’s value for each Action in the ActionDesign | Actions | <Action> node in the Model Editor.
This property derives its value from the ActionBase.Shortcut property that defines default shortcuts.
Windows Forms
You can use the following values with the Shortcut
property:
- A System.Windows.Forms.Shortcut enumeration value in string format (for example,
CtrlShiftO
). - A System.Windows.Forms.Keys enumeration value in string format (for example,
LShiftKey
). - Several System.Windows.Forms.Keys values in string format separated by “+” (for example,
Control+Shift+O
).
The following table contains default shortcuts you can use to execute Actions in XAF Windows Forms applications:
Action | Shortcut |
---|---|
NavigateBack | Alt+LeftArrow |
NavigateForward | Alt+RightArrow |
New | Ctrl+N |
Save | Ctrl+S |
Delete | Ctrl+D |
SaveAndClose | Control+Enter |
Refresh | F5 |
EditModel | Ctrl+Shift+F1 |
Print (from the Printing Module) | Ctrl+P |
Open (from the FileAttachments module) | Ctrl+O |
SaveTo (from the FileAttachments module) | Ctrl+Shift+S |
Note
XAF Windows Forms applications do not support multiple shortcuts for a single Action.
ASP.NET Core Blazor
In XAF ASP.NET Core Blazor applications, shortcuts are available for Actions that appear as Toolbar items and Grid Row Context Menu items.
XAF does not distinguish between the left or right modifier keys: Control, Shift, or Alt.
XAF ASP.NET Core Blazor applications support multiple shortcuts for a single Action. The semicolon symbol separates individual shortcuts and cannot be part of a shortcut.
XAF ASP.NET Core Blazor applications support most of the Windows Forms syntax, but we recommend setting shortcuts in ASP.NET Core Blazor applications as follows:
- Control+Shift+Alt+Windows+O
- Control+Shift+O
- Control+Shift+PageDown
- Control+Shift+ArrowLeft
- Control+Shift+Equal
- Control+Shift+Period
- Shift+O
- Command+O
- Control+O;Command+O
For specific code values (for example, Period, Comma, or Slash), refer to the following list: Keyboard Event Code Values (MDN)
The following table contains default shortcuts you can use to execute Actions in XAF ASP.NET Core Blazor applications:
Action | Shortcut |
---|---|
DeleteAction | Control+Delete |
SaveAction | Control+Shift+S |
SaveAndCloseAction | Control+Shift+Enter |
NewObjectAction | Control+Shift+A |
PreviousObjectAction | Control+Alt+ArrowLeft |
NextObjectAction | Control+Alt+ArrowRight |
RefreshAction | Control+Shift+R |
AcceptAction | Control+Shift+Enter |
LogonAction | Enter |