Global Shortcuts Portal
Wrapper around the org.freedesktop.portal.GlobalShortcuts D-Bus interface. Provides convenient methods to register and listen for global keyboard shortcuts.
This portal maintains an active session internally. After calling createSession, shortcuts can be bound using bindShortcuts and activation events can be observed via activations.
Properties
Functions
Returns a Flow of shortcut activation events for the active session.
Bind shortcuts to the active session. This allows the application to receive activation events when the user triggers the shortcuts.
Bind shortcuts to the session. This allows the application to receive activation events when the user triggers the shortcuts.
Clears the active session.
Opens the system dialog for configuring shortcuts using the active session.
Opens the system dialog for configuring shortcuts.
Creates a new global shortcuts session and sets it as the active session.
List all shortcuts bound to the active session.
List all shortcuts bound to the session.
Returns a Flow that emits when the active session is closed.