import * as React from 'react'; import JqxMenu from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxmenu'; class App extends React.PureComponent<{}> { private myMenu = React.createRef(); private eventLog = React.createRef(); constructor(props: {}) { super(props); this.onItemClick = this.onItemClick.bind(this); } public componentDidMount() { this.myMenu.current!.focus(); } public render() { return (




  • Tab - Once the focus is received, users will be able to use the keyboard to change the focused menu item.
  • Shift+Tab - reverses the direction of the tab order. Once in the widget, a Shift+Tab will take the user to the previous menu item.
  • Up/Down arrow keys - select previous or next item in a vertical menu or sub menu.
  • Left/Right arrow keys - select previous or next item in a horizontal menu.
  • Alt Up/Down arrow keys - opens or closes the popup.
  • Alt Left/Right arrow keys - opens or closes the popup in a sub menu item or vertical menu.
  • Esc - closes all popups.
  • Enter - Triggers the item's click.
); } private onItemClick(event: any): void { this.eventLog.current!.innerHTML = 'Clicked: ' + event.args.innerText; }; } export default App;