Automatically select the search field when opening a GameplayTag tree view & Keyboard shortcuts#22
Open
Daxxas wants to merge 2 commits intoBandoWare:mainfrom
Open
Automatically select the search field when opening a GameplayTag tree view & Keyboard shortcuts#22Daxxas wants to merge 2 commits intoBandoWare:mainfrom
Daxxas wants to merge 2 commits intoBandoWare:mainfrom
Conversation
- Added up/down key to navigate through a gameplay tag tree - Added enter key to select a tag in a tag property - Added enter key to add/remove a tag in a tag container
Daxxas
commented
Mar 3, 2026
| RemoveTag(item.Tag); | ||
|
|
||
| Repaint(); // Have to repaint or the Toggle GUI is not updated accordingly | ||
| } |
Author
There was a problem hiding this comment.
Code block listening to enter key for a gameplaytag container to add/remove the tag to the container
Daxxas
commented
Mar 3, 2026
| m_TagNameProperty.serializedObject.ApplyModifiedProperties(); | ||
|
|
||
| m_OnSelectionChange?.Invoke(); | ||
| } |
Author
There was a problem hiding this comment.
Code block listening to the enter key to select a gameplaytag
Daxxas
commented
Mar 3, 2026
| Reload(); | ||
|
|
||
| m_SearchField.SetFocus(); | ||
| m_SearchField.downOrUpArrowKeyPressed += SetFocusAndEnsureSelectedItem; |
Author
There was a problem hiding this comment.
Select the first treeview item on up/down arrows
Daxxas
commented
Mar 3, 2026
| @@ -85,6 +85,7 @@ public GameplayTagTreeViewBase(TreeViewState treeViewState) | |||
| Reload(); | |||
|
|
|||
| m_SearchField.SetFocus(); | |||
Author
There was a problem hiding this comment.
Directly set the focus on the search field when opening the dropdown to be able to search directly
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a quality of life change

Automatically select the search field when opening a GameplayTag tree view here, making it possible to directly type in a search instead of having to click on the field before searching