mirror of
https://github.com/Relintai/material-maker.git
synced 2025-02-19 07:44:19 +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:
|
func _unhandled_input(event : InputEvent) -> void:
|
||||||
if event is InputEventKey and event.pressed and event.command and event.scancode == KEY_F:
|
if event is InputEventKey and event.pressed and event.command and event.scancode == KEY_F:
|
||||||
filter_line_edit.grab_focus()
|
filter_line_edit.grab_focus()
|
||||||
|
filter_line_edit.select_all()
|
||||||
|
|
||||||
func get_selected_item_name():
|
func get_selected_item_name():
|
||||||
var tree_item : TreeItem = tree.get_selected()
|
var tree_item : TreeItem = tree.get_selected()
|
||||||
|
Loading…
Reference in New Issue
Block a user