I have a horizontal menu component with submenus that I use for navigation. Our customer asked if we could replicate their old style of navigation, which was based on keyboard key presses. I can figure out how to capture key presses in the background and navigate as a result.
What I’m unable to do is use a key press to replicate the opening of a menu, as if a user had clicked on one of the menu items with the mouse to open its submenu items. Is it possible to initiate a mouse click event programmatically, or otherwise expand the menu items on the Horizontal Menu without a mouse click?
I don’t know, to be honest. At some point, what we can actually intercept is very much up to browsers, so there may even be cross-platform concerns. I think that’s part of the reason the feature is taking a while to develop - we’re trying to iron out as many of these issues as possible before release.
I don’t know for sure (I’m not involved in the front-end of Perspective, pretty much at all) but my understanding of what’s involved would suggest that you are correct. I think we’d have to implement handling for that at the JS level, and expose it as a prop. Sounds like a feature request/ideas post to me.