Gtk.Widget.prototype.get_modifier_mask

function get_modifier_mask(intent:Gdk.ModifierIntent):Gdk.ModifierType {
    // Gjs wrapper for gtk_widget_get_modifier_mask()
}

Returns the modifier mask the widget's windowing system backend uses for a particular purpose.

See Gdk.get_modifier_mask.

Since 3.4

intent

the use case for the modifier mask

Returns

the modifier mask used for intent.