OK - but note that it is very hacky emulator code... needs revisiting.
A couple of key changes I made were to ignore items with an accessible role of 49 (invisible separators), and to check which item is focussed (unreliable).
I also disabled some of the code that checks the item by name rather than by index. With hindsight, the reasons I disabled it may be invalid now I have implemented the above.
OK - but note that it is very hacky emulator code... needs revisiting.
A couple of key changes I made were to ignore items with an accessible role of 49 (invisible separators), and to check which item is focussed (unreliable).
I also disabled some of the code that checks the item by name rather than by index. With hindsight, the reasons I disabled it may be invalid now I have implemented the above.