-
Notifications
You must be signed in to change notification settings - Fork 316
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: Arrow key navigation of Input Actions after Action rename. #2082
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes LGTM, thanks for adding a corresponding test case to prevent future regression.
@@ -173,5 +189,51 @@ public IEnumerator CanDeleteActionMap() | |||
Assert.That(m_Window.currentAssetInEditor.actionMaps[0].name, Is.EqualTo("First Name")); | |||
Assert.That(m_Window.currentAssetInEditor.actionMaps[1].name, Is.EqualTo("Third Name")); | |||
} | |||
|
|||
[UnityTest] | |||
public IEnumerator CanRenameAction() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome you've added a proper editor test for this. Thank you!
6181acc
to
249949b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Context menu messes up if you right click in rename mode. (Double click on an action to enter rename mode -> rightclick)
10.12.2024.-.Unity.67.mp4
If you duplicate while in rename mode that action stays in rename mode instead of cancelling it 10.12.2024.-.Unity.68.mp4 |
Odd behaviour after renaming a map -> action and then action again 10.12.2024.-.Unity.69.mp4 |
Description
ActionsTreeView should use RefreshItems in Unity 6000.0 onwards to have the same behaviour as ActionMapsView. This allows keyboard navigation after renaming.
It is not a perfect fix, as the limitations of UIToolkit and InputSystem refresh mean that the action will still lose focus occasionally. However this is the current behaviour of Action Maps and Actions should match that as closely as possible.
Testing status & QA
Local Testing.
Added new CanRenameAction test.
Overall Product Risks
Complexity: Low
Halo Effect: None
Comments to reviewers
Checklist
Before review:
Changed
,Fixed
,Added
sections.Area_CanDoX
,Area_CanDoX_EvenIfYIsTheCase
,Area_WhenIDoX_AndYHappens_ThisIsTheResult
.During merge:
NEW: ___
.FIX: ___
.DOCS: ___
.CHANGE: ___
.RELEASE: 1.1.0-preview.3
.After merge: