From 30d409edc19f372bf55b7ee47c9f65087f4d437d Mon Sep 17 00:00:00 2001 From: bncastle Date: Sun, 26 Nov 2017 20:54:26 -0500 Subject: Focus on sprite animation list after adding a new one to allow renaming with f2 After adding a new sprite animation, focus on the sprite animation list to allow renaming the animation with f2 instead of having to click on the sprite name again. --- editor/plugins/sprite_frames_editor_plugin.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/editor/plugins/sprite_frames_editor_plugin.cpp b/editor/plugins/sprite_frames_editor_plugin.cpp index b3bb103577..175655119f 100644 --- a/editor/plugins/sprite_frames_editor_plugin.cpp +++ b/editor/plugins/sprite_frames_editor_plugin.cpp @@ -394,6 +394,7 @@ void SpriteFramesEditor::_animation_add() { edited_anim = name; undo_redo->commit_action(); + animations->grab_focus(); } void SpriteFramesEditor::_animation_remove() { -- cgit v1.2.3