When renaming or closing a window/tab the selection does not stay in the correct place
guysherman opened this issue · 1 comments
guysherman commented
Scenario
- Select a window
- Hit
x
to close it.
Expected behavior
The item that is now has the position that the closed window did, should be selected (this would typically be the next item in the list).
Actual behavior:
The selection moves up to the item above the window that was closed
Cause
This is a bug in treecat, where only changed properties are updated, but if you change items
you need to change selected
as well.
guysherman commented
There is a similar behavior on renaming a window, where the selection goes to the top of the list, and the keys are out of sync, it is the same problem where selectedIndex
is not being reset after replacing items, because it has not changed.