Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Focus Swing interop. Move focus from Compose to SwingPanel #229

Merged
merged 4 commits into from
Jun 9, 2022

Conversation

igordmn
Copy link
Collaborator

@igordmn igordmn commented May 30, 2022

Compose doesn't support detecting from where we receive the focus (from the previous or from the next component). But we need to know it, so we can focus the first or the last component in SwingPanel. We create two empty Compose components to do that (if we focused on the first component - it means the focus came from the previous one).

Also added tests for all focus interop cases. On macOs the tests are disabled

@igordmn igordmn force-pushed the feature/focusInterop3 branch 2 times, most recently from 6004380 to d79dc50 Compare June 9, 2022 14:19
Base automatically changed from feature/focusInterop3 to jb-main June 9, 2022 14:19
@igordmn igordmn marked this pull request as ready for review June 9, 2022 14:22
@igordmn igordmn merged commit 06e71b2 into jb-main Jun 9, 2022
@igordmn igordmn deleted the feature/focusInterop4 branch June 9, 2022 14:25
eymar pushed a commit that referenced this pull request Jun 27, 2022
* Focus Swing interop. Move focus from Compose to SwingPanel

Also added tests for all focus interop cases.

* fix SAM crash in Layout measurePolicy with value class, fix run3

* Refactor

* Disable tests for macOs
eymar pushed a commit that referenced this pull request Jun 28, 2022
* Focus Swing interop. Move focus from Compose to SwingPanel

Also added tests for all focus interop cases.

* fix SAM crash in Layout measurePolicy with value class, fix run3

* Refactor

* Disable tests for macOs
igordmn added a commit that referenced this pull request Aug 18, 2022
* Focus Swing interop. Move focus from Compose to SwingPanel

Also added tests for all focus interop cases.

* fix SAM crash in Layout measurePolicy with value class, fix run3

* Refactor

* Disable tests for macOs
igordmn added a commit that referenced this pull request Aug 18, 2022
* Focus Swing interop. Move focus from Compose to SwingPanel

Also added tests for all focus interop cases.

* fix SAM crash in Layout measurePolicy with value class, fix run3

* Refactor

* Disable tests for macOs
This was referenced Aug 22, 2022
eymar pushed a commit that referenced this pull request Oct 26, 2022
* Focus Swing interop. Move focus from Compose to SwingPanel

Also added tests for all focus interop cases.

* fix SAM crash in Layout measurePolicy with value class, fix run3

* Refactor

* Disable tests for macOs
eymar pushed a commit that referenced this pull request Nov 16, 2022
* Focus Swing interop. Move focus from Compose to SwingPanel

Also added tests for all focus interop cases.

* fix SAM crash in Layout measurePolicy with value class, fix run3

* Refactor

* Disable tests for macOs
eymar pushed a commit that referenced this pull request Jan 13, 2023
* Focus Swing interop. Move focus from Compose to SwingPanel

Also added tests for all focus interop cases.

* fix SAM crash in Layout measurePolicy with value class, fix run3

* Refactor

* Disable tests for macOs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants