From 0d7567e636207a86563bbf43906679ed3d491fe3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lera=20Elvo=C3=A9?= Date: Wed, 13 Dec 2023 14:32:22 +0300 Subject: [PATCH] don't move the cursor with up/down arrow keys in search bar --- graph_node_renderer/add_node_menu.gd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/graph_node_renderer/add_node_menu.gd b/graph_node_renderer/add_node_menu.gd index 706302c..222eeae 100644 --- a/graph_node_renderer/add_node_menu.gd +++ b/graph_node_renderer/add_node_menu.gd @@ -83,6 +83,7 @@ func search(text: String) -> void: ## Callback for [member search_line_edit]'s input events. Handles highlighting items when navigating with up/down arrow keys. func _on_search_line_edit_gui_input(event: InputEvent) -> void: if event.is_action_pressed("ui_down"): + search_line_edit.accept_event() var category: Category for i: String in categories: var c: Category = categories[i] @@ -103,6 +104,7 @@ func _on_search_line_edit_gui_input(event: InputEvent) -> void: scroll_container.ensure_control_visible(category.get_child(item + 1)) if event.is_action_pressed("ui_up"): + search_line_edit.accept_event() var category: Category for i: String in categories: var c: Category = categories[i]