mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-14 13:29:40 +01:00
JBR-2712 Typeahead mechanism doesn't work on Windows
fix issue with newly opened popup not being recognized by screen reader
This commit is contained in:
@@ -293,15 +293,16 @@ public class EventQueueMonitor
|
|||||||
case MouseEvent.MOUSE_MOVED:
|
case MouseEvent.MOUSE_MOVED:
|
||||||
case MouseEvent.MOUSE_DRAGGED:
|
case MouseEvent.MOUSE_DRAGGED:
|
||||||
case FocusEvent.FOCUS_GAINED:
|
case FocusEvent.FOCUS_GAINED:
|
||||||
|
case WindowEvent.WINDOW_ACTIVATED:
|
||||||
case WindowEvent.WINDOW_DEACTIVATED:
|
case WindowEvent.WINDOW_DEACTIVATED:
|
||||||
queueComponentEvent((ComponentEvent) theEvent);
|
queueComponentEvent((ComponentEvent) theEvent);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case WindowEvent.WINDOW_ACTIVATED:
|
case WindowEvent.WINDOW_GAINED_FOCUS:
|
||||||
// Dialogs fire WINDOW_ACTIVATED and FOCUS_GAINED events
|
// WINDOW_GAINED_FOCUS, WINDOW_ACTIVATED and FOCUS_GAINED events
|
||||||
// before WINDOW_OPENED so we need to add topLevelListeners
|
// are fired before WINDOW_OPENED so we need to add topLevelListeners
|
||||||
// for the dialog when it is first activated to get a
|
// for the window when it is first focused to get a
|
||||||
// focus gained event for the focus component in the dialog.
|
// focus gained event for the focus component in it.
|
||||||
if (theEvent instanceof ComponentEvent) {
|
if (theEvent instanceof ComponentEvent) {
|
||||||
ComponentEvent ce = (ComponentEvent)theEvent;
|
ComponentEvent ce = (ComponentEvent)theEvent;
|
||||||
if (ce.getComponent() instanceof Window) {
|
if (ce.getComponent() instanceof Window) {
|
||||||
@@ -312,7 +313,6 @@ public class EventQueueMonitor
|
|||||||
EventQueueMonitor.addTopLevelWindow(ce.getComponent());
|
EventQueueMonitor.addTopLevelWindow(ce.getComponent());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
queueComponentEvent((ComponentEvent) theEvent);
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// handle WINDOW_OPENED and WINDOW_CLOSED events synchronously
|
// handle WINDOW_OPENED and WINDOW_CLOSED events synchronously
|
||||||
|
|||||||
Reference in New Issue
Block a user