mirror of
https://github.com/Relintai/material-maker.git
synced 2024-11-13 06:27:18 +01:00
Select the text in the filter LineEdit when pressing the shortcut
This commit is contained in:
parent
94213e7a1d
commit
dd8eeb2835
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user