JetBrains / JetBrainsRuntime

Runtime environment based on OpenJDK for running IntelliJ Platform-based products on Windows, macOS, and Linux
GNU General Public License v2.0
1.28k stars 193 forks source link

JBR-6325 Implement keyboard focus tracking for macOS Accessibility Zoom #302

Closed dmitrii-drobotov closed 6 months ago

dmitrii-drobotov commented 7 months ago

Next step after https://github.com/JetBrains/JetBrainsRuntime/pull/255, making the Accessibility Zoom follow keyboard focus changes.

Demo in IntelliJ and SwingSet: https://youtrack.jetbrains.com/issue/JBR-6325/macOS-No-keyboard-focus-tracking-while-using-Accessibility-Zoom-feature-with-IDE#focus=Comments-27-9125755.0-0.

dmitrii-drobotov commented 6 months ago

I also fixed a performance issue when selecting a lot of children, for example by pressing Cmd+A in a project tree or git log table with thousands of children. Calculating frames of all children caused long freezes in such cases, so I decided to use only the frame of the first selected child, which should be good enough in most cases.