Package: gdk

Function gdk-event-triggers-context-menu

Lambda List

gdk-event-triggers-context-menu (event)

Arguments

event -- a gdk-event instance

Return Value

True if the event should trigger a contect menu.

Details

This function returns whether a gdk-event-button should trigger a context menu, according to platform conventions. The right mouse button always triggers context menus. Additionally, if the function gdk-keymap-modifier-mask returns a non-0 mask for the value :context-menu of the gdk-modifier-intent enumeration, then the left mouse button will also trigger a context menu if this modifier is pressed.

This function should always be used instead of simply checking for event->button == GDK_BUTTON_SECONDARY.
 

See also

2020-8-25