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

FIX: fixed gamepad navigation in UI Toolkit TextField #2103

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

benoitalain
Copy link
Collaborator

Description

Fixed UUM-77364: fixed gamepad navigation in UI Toolkit TextField when using InputSystemUIInputModule.

Testing status & QA

Tested issue and fix manually. Modified unit test to include IsKeyboardNavigationEvent check.

Overall Product Risks

  • Complexity: medium
  • Halo Effect: low

Comments to reviewers

Requires prior landing of trunk PR: https://github.cds.internal.unity3d.com/unity/unity/pull/59210.

Asmdef define for UNITY_INPUT_SYSTEM_INPUT_MODULE_NON_KEYBOARD needs to be adjusted once that PR has landed.

Checklist

Before review:

  • Changelog entry added.
    • Explains the change in Changed, Fixed, Added sections.
    • For API change contains an example snippet and/or migration example.
    • JIRA ticket linked, example (case %%). If it is a private issue, just add the case ID without a link.
    • Jira port for the next release set as "Resolved".
  • Tests added/changed, if applicable.
    • Functional tests Area_CanDoX, Area_CanDoX_EvenIfYIsTheCase, Area_WhenIDoX_AndYHappens_ThisIsTheResult.
    • Performance tests.
    • Integration tests.
  • Docs for new/changed API's.
    • Xmldoc cross references are set correctly.
    • Added explanation how the API works.
    • Usage code examples added.
    • The manual is updated, if needed.

During merge:

  • Commit message for squash-merge is prefixed with one of the list:
    • NEW: ___.
    • FIX: ___.
    • DOCS: ___.
    • CHANGE: ___.
    • RELEASE: 1.1.0-preview.3.

After merge:

  • Create forward/backward port if needed. If you are blocked from creating a forward port now please add a task to ISX-1444.

@benoitalain benoitalain requested a review from bmalrat January 9, 2025 20:50
@benoitalain benoitalain changed the title Fixed UUM-77364. Requires trunk PR (same branch name). FIX: fixed gamepad navigation in UI Toolkit TextField when using InputSystemUIInputModule Jan 10, 2025
@benoitalain benoitalain changed the title FIX: fixed gamepad navigation in UI Toolkit TextField when using InputSystemUIInputModule FIX: fixed gamepad navigation in UI Toolkit TextField Jan 10, 2025
Copy link
Collaborator

@ekcoh ekcoh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code changes LGTM, thanks for addressing this.

Copy link
Collaborator

@ekcoh ekcoh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like it doesn't compile cleanly (CI failures) that needs to be looked into, maybe you are expected types that doesn't exist on older versions? Suspect this is why you added the new conditional symbol define. Also seem to have file conflict.

@benoitalain
Copy link
Collaborator Author

Seems like it doesn't compile cleanly (CI failures) that needs to be looked into, maybe you are expected types that doesn't exist on older versions? Suspect this is why you added the new conditional symbol define. Also seem to have file conflict.

The corresponding trunk PR needs to land first. Also, I will adjust the asmdef define constraint when it has landed, since I can't know what it is for sure before that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants