docs: Update function docs for gdk_event_triggers_context_menu

Include macOS, make code snipper easier identifyable.
This commit is contained in:
Arjan Molenaar 2024-07-29 20:07:13 +02:00
parent df87b1820b
commit f0925e4ef2

View File

@ -978,9 +978,13 @@ gdk_event_get_axis (GdkEvent *event,
* according to platform conventions.
*
* The right mouse button typically triggers context menus.
* On macOS, Control+left mouse button also triggers.
*
* This function should always be used instead of simply checking for
* event->button == %GDK_BUTTON_SECONDARY.
*
* ```c
* event->button == GDK_BUTTON_SECONDARY
* ```
*
* Returns: %TRUE if the event should trigger a context menu.
*/