'Declaration Public ReadOnly Property KeyActionMappings As KeyActionMappings
public KeyActionMappings KeyActionMappings {get;}
The KeyActionMappings property provides access to the control's mechanism for handling keyboard input from users. All keystrokes for actions such as selection, navigation and editing are stored in a table-based system that you can examine and modify using this property. Through the KeyActionsMappings property, you can customize the keyboard layout of the control to match your own standards for application interactivity.
For example, if you wanted users to be able to navigate between cells by pressing the F8 key, you could add this behavior. You can specify the key code and any special modifier keys associated with an action, as well as determine whether a key mapping applies in a given context.
KeyCode | ActionCode | StateRequired | StateDisallowed | SpecialKeysRequired | SpecialKeysDisallowed |
---|---|---|---|---|---|
Right | NextCharacter | Character | None | None | Ctrl |
Right | NextSection | Character | LastSection | Ctrl | None |
Right | AfterLastCharacter | LastSection | None | Ctrl | None |
Right | SetPivot | None | UnInitialized | None | Shift |
Left | PrevCharacter | None | FirstCharacter | None | Ctrl |
Left | PrevSection | None | FirstSection | Ctrl | None |
Left | FirstCharacter | FirstSection | FirstCharacter | Ctrl | None |
Left | SetPivot | None | UnInitialized | None | Shift |
Home | FirstCharacter | None | FirstCharacter | None | None |
Home | SetPivot | None | UnInitialized | None | Shift |
End | AfterLastCharacter | None | AfterLastCharacter | None | None |
End | SetPivot | None | UnInitialized | None | Shift |
Tab | NextSection | Character | LastSection | None | Shift |
Tab | SetPivot | Character | LastSection | None | Shift |
Tab | SelectSection | Character | LastSection | None | Shift |
Tab | NextControl | LastSection | None | None | Shift |
Tab | NextControl | AfterLastCharacter | None | None | Shift |
Tab | NextControl | UnInitialized | Character, AfterLastCharacter | None | |
Tab | PrevSection | None | FirstSection | Shift | None |
Tab | SetPivot | None | FirstSection | Shift | None |
Tab | SelectSection | None | FirstSection | Shift | None |
Tab | PrevControl | FirstSection | None | Shift | None |
Tab | PrevControl | UnInitialized | Character, AfterLastCharacter | Shift | |
Delete | Delete | Selected | None | None | None |
Delete | Delete | Character | Selected | None | Shift |
Delete | Backspace | None | None | Shift | Ctrl |
Delete | AfterLastCharacter | Character | Selected | Ctrl | Shift |
Delete | Delete | Character | Selected | Ctrl | Shift |
Back | Backspace | Selected | None | None | None |
Back | Backspace | None | FirstCharacter, Selected | None | None |
C | Copy | Selected | None | Ctrl | None |
X | Cut | Selected | None | Ctrl | None |
V | Paste | None | None | Ctrl | None |
Insert | ToggleInsertionMode | None | None | None | None |
Up | UpKeyAction | None | UnInitialized | None | None |
Down | DownKeyAction | None | UnInitialized | None | None |
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2