JavaFX tooltip event propagation quick tip

Using tooltips in different environments than JavaFx, like VLC Delphi or C# WPF, I’m used to behaviour that when user click outside of tooltip or tooltip owner then tooltip is hidden and also event is transmitted to original event target.
First part (hiding) working as expected but event propagation not. But JavaFX developers not forget about this and created opportunity to push event further.
All you have to do is to change property using method setConsumeAutoHidingEvents to false:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
/**
* Specifies whether the event, which caused the Popup to hide, should be
* consumed. Having the event consumed prevents it from triggering some
* additional UI response in the Popup's owner window.
* @defaultValue true
* @since JavaFX 2.2
*/
private BooleanProperty consumeAutoHidingEvents =
new SimpleBooleanProperty(this, "consumeAutoHidingEvents",
true);
public final void setConsumeAutoHidingEvents(boolean value) {
consumeAutoHidingEvents.set(value);
}

As you can see consumeAutoHidingEvents property default value is true, so event is not propagated. This code is from PopupWindow class and Tooltip class inherits this property.
In so far as it may be appropriate for popupWindow, it is not good solution for tooltip, where do you not expect to click two times, first one only to hide tooltip and second time to make action on some another control.