mirror of
https://github.com/Relintai/material-maker.git
synced 2024-11-13 06:27:18 +01:00
Merge pull request #28 from Calinou/filter-shortcut-select-all
Select the text in the filter LineEdit when pressing the shortcut
This commit is contained in:
commit
49f5d54acf
@ -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