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 instance should trigger a context menu, according to platform conventions. The right mouse button always triggers context menus. Additionally, if the gdk:keymap-modifier-mask function returns a non-0 mask for the :context-menu value 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

#2023-2-26