mirror of
https://github.com/lightsoutgames/godot-accessibility.git
synced 2024-11-22 03:45:56 +00:00
Fix logic for right-arrowing through tree columns in light of other recent tree selection changes.
This commit is contained in:
parent
e82fd7f8b8
commit
d0afc9e4e3
|
@ -232,11 +232,10 @@ var button_index
|
||||||
func tree_item_selected():
|
func tree_item_selected():
|
||||||
button_index = null
|
button_index = null
|
||||||
var cell = node.get_selected()
|
var cell = node.get_selected()
|
||||||
if cell:
|
|
||||||
cell.select(0)
|
|
||||||
if node.select_mode == Tree.SELECT_MULTI:
|
|
||||||
tree_deselect_all_but(cell, node.get_root())
|
|
||||||
if cell != prev_selected_cell:
|
if cell != prev_selected_cell:
|
||||||
|
if node.select_mode == Tree.SELECT_MULTI:
|
||||||
|
cell.select(0)
|
||||||
|
tree_deselect_all_but(cell, node.get_root())
|
||||||
tree_item_render()
|
tree_item_render()
|
||||||
prev_selected_cell = cell
|
prev_selected_cell = cell
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user