Gtk.AccelGroup.prototype.get_is_locked

function get_is_locked():Boolean {
    // Gjs wrapper for gtk_accel_group_get_is_locked()
}

Locks are added and removed using Gtk.lock and Gtk.unlock.

Since 2.14

Returns

true if there are 1 or more locks on the accel_group, false otherwise.