Keyboard navigation does not work in the correct order after the menu item has been added at runtime.
For example, if you are add a menu item to first index at runtime. Then Press the left or the right keys on the keyboard. The menu item has now navigated to the second position from the zero position. As per behavior, the menu should be navigated to the first position while pressing the left or right keys.
1.Run the attached demo.
2.Click the File menu item,
3.Now press the left or right keys on the keyboard and ensure the menu navigation.
4.Click the add button.
5.Newly menu item added to the first position.
6.Again navigate the menu with the left/right arrow keys.