Menu itemClicked - original event?

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

    • Post Options:
    • Link

    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 https://www.grapecity.com/wijmo/api/classes/wijmo_input.menu.html#itemclicked

    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.

  • Posted 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:

    https://stackblitz.com/edit/angular-9-0-0-rc-1-tt8sgn

    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.

    Regards,

    Ashwin

  • Posted 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