Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxCustomRibbonForm.KeyPreview Property

Specifies if the form receives keyboard events before the active control.

#Declaration

Delphi
property KeyPreview; default True;

#Property Value

Type Default Description
Boolean True

If True, the form handles keyboard events before the focused control. If False, the form only passes keyboard events to the focused control.

#Remarks

The KeyPreview property has no effect on navigation keys, such as Tab and arrow keys, because they do not generate keyboard events.

The KeyPreview property’s default value is True.

See Also