Community
Participate
Working Groups
* not in focus and all items in the widget are disposed before
* it finishes processing a button press. The fix is to give
* focus to the widget before it starts processing the event.
* This fix should not be applied for double-click events.
*/
if (!OS.GTK_WIDGET_HAS_FOCUS (handle)) {
if (!OS.GTK_WIDGET_HAS_FOCUS (handle) && gdkEvent.type == OS.GDK_BUTTON_PRESS) {
OS.gtk_widget_grab_focus (handle);
}
return result;