Page 1 of 1

DisableGadgetContextMenu possible?

Posted: Wed May 13, 2020 6:29 am
by Dirk Geppert

Code: Select all

Procedure DisableSiteContextMenu(state)
  If state
    ! $('body').attr("oncontextmenu", "return false;");
  Else
    ! $('body').attr("oncontextmenu", "");
  EndIf
 EndProcedure
Is it possible to disable the contexmenu for a special gadget, e.g. the listicongadget() to use the own popupmenu?
Otherwise I could working with onfocus and lostfocus and global en/disable..