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

◆ suppress_key_press() [2/2]

void xtd::forms::key_event_args::suppress_key_press ( bool  suppress_key_press)
inline

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

Parameters
suppress_key_presstrue 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.