xtd 0.2.0
Loading...
Searching...
No Matches

◆ suppress_key_press() [1/2]

bool xtd::forms::key_event_args::suppress_key_press ( ) const
inlinenoexcept

Gets a value indicating whether the key event should be passed on to the underlying control.

Returns
true if the key event should not be sent to the control; otherwise, false.
Remarks
You can assign true to this property in an event handler such as xtd::forms::control::key_down in order to prevent user input.
Setting suppress_key_press to true also sets handled to true.