From 77d3ff7e4418de5342cbc77d350dc84e8e287254 Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Thu, 19 Jul 2018 15:24:42 +0000 Subject: [PATCH] Handle arrow events in ItemList so other controls aren't activated. --- addons/accessibility/accessible.gd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/accessibility/accessible.gd b/addons/accessibility/accessible.gd index 22deeb8..2bef63e 100644 --- a/addons/accessibility/accessible.gd +++ b/addons/accessibility/accessible.gd @@ -40,10 +40,12 @@ func input_item_list(event): if event.echo or not event.pressed: return if event.scancode == KEY_UP: + node.get_tree().set_input_as_handled() if list_pos == 0: return list_pos -= 1 elif event.scancode == KEY_DOWN: + node.get_tree().set_input_as_handled() if list_pos >= node.get_item_count()-1: return list_pos += 1