Use InputMap actions consistently across all LineEdit's that filter an underlying Tree or ItemList. #96400
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.
Fixes: #96212 (review)
Similiar to #43663
Key::UP
,Key::DOWN
,Key::PAGEUP
,Key::PAGEDOWN
etc., we rather check for the action likeui_up
orui_down
etc..register_text_enter
functionality to consistently close a dialog whenENTER
is pressed while theLineEdit
has focus (instead of redirectingENTER
keys to e.g. the underlyingTree
).LineEdit
filter behavior for theSceneTreeDialog
and corresponding usages.While at the
editor/plugins/visual_shader_editor_plugin.cpp
, found some related things I fixed while there:varying
dialogs are shownAcceptDialog
now, which enables the same navigation as for other dialogs (press ENTER to confirm, ESCAPE to close, was the only dialog where this does not work)Affected dialogs and how to test them (Navigate while the LineEdit has focus, press ENTER to confirm selection):
CreateDialog
(Create Node or Resource)EditorCommandPalette
(CTRL+Shift+P)EditorHelpSearch
(F1)EditorQuickOpen
(CTRL+Shift+O)GridMapEditor
(GridMap with MeshLibrary
)PropertySelector
(MultiplayerSynchronizer
-> add property)SceneTreeDialog
(@export var abc: NodePath
-> Assign a Node, used in AnimationTrackEditor, ReplicationEditor)ScriptEditorQuickOpen
(editScript
-> CTRL+ALT+F)ThemeTypeDialog
(editTheme
-> add type)VisualShaderEditor
, including varying dialog and shader preview dialog (Shader Editor
)