From dd8eeb2835e2a7c9b658aa9767f59e50e9642602 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Sat, 19 Oct 2019 02:01:30 +0200 Subject: [PATCH] Select the text in the filter LineEdit when pressing the shortcut --- addons/material_maker/library.gd | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/material_maker/library.gd b/addons/material_maker/library.gd index 1a9ae69..e942706 100644 --- a/addons/material_maker/library.gd +++ b/addons/material_maker/library.gd @@ -19,6 +19,7 @@ func _ready(): func _unhandled_input(event : InputEvent) -> void: if event is InputEventKey and event.pressed and event.command and event.scancode == KEY_F: filter_line_edit.grab_focus() + filter_line_edit.select_all() func get_selected_item_name(): var tree_item : TreeItem = tree.get_selected()