Menu itemClicked - original event?

Posted by: steidle on 2 April 2021, 2:36 am EST

  • Posted 2 April 2021, 2:36 am EST

    For Wijmo Menu when an item is selected, how can I access the original event that triggered the action?
    When I use the itemClicked event
    the second parameter ev:EventArgs does not hold any useful information.

    I need to know if Ctrl, Shift or Alt where pressed when a menu item was selected.
  • Marked as Answer

    Replied 4 April 2021, 5:31 pm EST

    Hi Andreas,

    You can handle the mousedown event of the dropDown element of Menu. This mousedown event can provide the current data:

    I have also forwarded a feature request to the developers to update the itemClicked event so that it provides the mouse event as the event data. The internal tracking id of the case is WJM-19645.

  • Replied 6 April 2021, 12:08 am EST

    Thanks! Using the mousedown from the dropDown worked nicely!
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels