set_scope


Description:

public void set_scope (ShortcutScope scope)

Sets the controller to have the given scope.

The scope allows shortcuts to be activated outside of the normal event propagation. In particular, it allows installing global keyboard shortcuts that can be activated even when a widget does not have focus.

With gtk_shortcut_scope_local, shortcuts will only be activated when the widget has focus.

Parameters:

this

a `GtkShortcutController`

scope

the new scope to use




2022 vala-language.org