Blocking clicks through balloon.
This commit is contained in:
@@ -63,11 +63,11 @@ class EditSignatureBalloon {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private Balloon createBalloon(JPanel panel) {
|
private Balloon createBalloon(JPanel panel) {
|
||||||
BalloonBuilder builder = JBPopupFactory.getInstance().createDialogBalloonBuilder(panel, "Kotlin signature");
|
Balloon balloon = JBPopupFactory.getInstance().createDialogBalloonBuilder(panel, "Kotlin signature")
|
||||||
builder.setHideOnClickOutside(true);
|
.setHideOnClickOutside(true)
|
||||||
builder.setHideOnKeyOutside(true);
|
.setHideOnKeyOutside(true)
|
||||||
|
.setBlockClicksThroughBalloon(true).createBalloon();
|
||||||
|
|
||||||
Balloon balloon = builder.createBalloon();
|
|
||||||
balloon.addListener(new JBPopupAdapter() {
|
balloon.addListener(new JBPopupAdapter() {
|
||||||
@Override
|
@Override
|
||||||
public void onClosed(LightweightWindowEvent event) {
|
public void onClosed(LightweightWindowEvent event) {
|
||||||
|
|||||||
Reference in New Issue
Block a user