mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Restore focus bugfixes
This commit is contained in:
@@ -143,7 +143,12 @@ public class IdeTooltipManager implements ApplicationComponent, AWTEventListener
|
||||
if (!myCurrentTipIsCentered) {
|
||||
myX = me.getX();
|
||||
myY = me.getY();
|
||||
|
||||
if (c instanceof JComponent && ((JComponent)c).getToolTipText(me) == null && (myQueuedTooltip == null || !myQueuedTooltip.isHint())) {
|
||||
hideCurrent(me, null, null);//There is no tooltip or hint here, let's proceed it as MOUSE_EXITED
|
||||
}
|
||||
else {
|
||||
maybeShowFor(c, me);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -171,7 +171,8 @@ public class LightweightHint extends UserDataHolderBase implements Hint {
|
||||
.setFont(hintHint.getTextFont())
|
||||
.setCalloutShift(hintHint.getCalloutShift())
|
||||
.setPositionChangeShift(hintHint.getPositionChangeX(), hintHint.getPositionChangeY())
|
||||
.setExplicitClose(hintHint.isExplicitClose());
|
||||
.setExplicitClose(hintHint.isExplicitClose())
|
||||
.setHint(true);
|
||||
myComponent.validate();
|
||||
myCurrentIdeTooltip = IdeTooltipManager.getInstance().show(tooltip, hintHint.isShowImmediately());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user