XPUDefocusKeyboard
WIDGET_API int XPUDefocusKeyboard(
XPWidgetMessage inMessage,
XPWidgetID inWidget,
intptr_t inParam1,
intptr_t inParam2,
int inEatClick);
This causes the widget to send keyboard focus back to X-Plane. This stops editing of any text fields, etc.