mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-241266 Editor hint isn't always displayed when pressing Next/Prev error buttons in Inspection Widget
GitOrigin-RevId: 857919f338051d9b8df16afca20c97796b695f39
This commit is contained in:
committed by
intellij-monorepo-bot
parent
12fe65e7fd
commit
887691497e
+7
-2
@@ -68,6 +68,7 @@ import org.jetbrains.concurrency.CancellablePromise;
|
||||
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
import java.awt.event.KeyEvent;
|
||||
import java.awt.event.MouseEvent;
|
||||
import java.awt.event.WindowEvent;
|
||||
import java.lang.ref.WeakReference;
|
||||
@@ -123,8 +124,12 @@ public final class EditorMouseHoverPopupManager implements Disposable {
|
||||
LaterInvocator.addModalityStateListener(entering -> {
|
||||
cancelProcessingAndCloseHint();
|
||||
}, this);
|
||||
IdeEventQueue.getInstance().addActivityListener(() -> {
|
||||
cancelCurrentProcessing();
|
||||
IdeEventQueue.getInstance().addDispatcher(event -> {
|
||||
int eventID = event.getID();
|
||||
if (eventID == KeyEvent.KEY_PRESSED || eventID == KeyEvent.KEY_TYPED) {
|
||||
cancelCurrentProcessing();
|
||||
}
|
||||
return false;
|
||||
}, this);
|
||||
ApplicationManager.getApplication().getMessageBus().connect(this).subscribe(AnActionListener.TOPIC, new MyActionListener());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user