ToolsAPI.Editor.INTACodeEditorEvents370.EditorKeyDown
Delphi
procedure EditorKeyDown(const Editor: TWinControl; Key: Word; Shift: TShiftState; var Handled: Boolean);
C++
virtual void __fastcall EditorKeyDown(Vcl::Controls::TWinControl* const Editor, System::Word Key, System::Classes::TShiftState Shift, bool &Handled) = 0 ;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | ToolsAPI.Editor.pas ToolsAPI.Editor.hpp |
ToolsAPI.Editor | INTACodeEditorEvents370 |
Description
Notifies when a key is pressed in the editor.
To receive notifications from this event, ensure that cevKeyboardEvents
is included in the result of AllowedEvents.
The following are the available parameters:
- Editor: The editor controls where the event occurred.
- Key: The virtual key code of the pressed key.
- Shift: Indicates the state of modifier keys, such as (
Shift
,Ctrl
,Alt
). - Handled: Enable it to mark the event as handled and prevent further processing.