mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Editor 'Ctrl+Hover' documentation: mouse click on hyperlink just closes tooltip with no navigation.
This commit is contained in:
@@ -157,7 +157,7 @@ public class IdeTooltipManager implements ApplicationComponent, AWTEventListener
|
||||
}
|
||||
else if (me.getID() == MouseEvent.MOUSE_PRESSED) {
|
||||
boolean clickOnTooltip = myCurrentTipUi != null && myCurrentTipUi == JBPopupFactory.getInstance().getParentBalloonFor(c);
|
||||
if (c == myCurrentComponent || clickOnTooltip) {
|
||||
if (c == myCurrentComponent || (clickOnTooltip && !myCurrentTipUi.isClickProcessor())) {
|
||||
hideCurrent(me, null, null, null, !clickOnTooltip);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1952,4 +1952,8 @@ public class BalloonImpl implements Balloon, IdeTooltip.Ui {
|
||||
public boolean isBlockClicks() {
|
||||
return myBlockClicks;
|
||||
}
|
||||
|
||||
public boolean isClickProcessor() {
|
||||
return myClickHandler != null || !myCloseOnClick || isBlockClicks();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user