Shortcut

open class Shortcut(pointer: <Error class: unknown class><<Error class: unknown class>>)

A GtkShortcut describes a keyboard shortcut.

It contains a description of how to trigger the shortcut via a class@Gtk.ShortcutTrigger and a way to activate the shortcut on a widget via a class@Gtk.ShortcutAction.

The actual work is usually done via class@Gtk.ShortcutController, which decides if and when to activate a shortcut. Using that controller directly however is rarely necessary as various higher level convenience APIs exist on GtkWidgets that make it easier to use shortcuts in GTK.

GtkShortcut does provide functionality to make it easy for users to work with shortcuts, either by providing informational strings for display purposes or by allowing shortcuts to be configured.

Skipped during bindings generation

  • constructor new_with_arguments: Varargs parameter is not supported

Constructors

Link copied to clipboard
constructor(trigger: ShortcutTrigger? = null, action: ShortcutAction? = null)

Creates a new GtkShortcut that is triggered by

constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The action that gets activated by this shortcut.

Link copied to clipboard
open var arguments: <Error class: unknown class>?

Arguments passed to activation.

Link copied to clipboard
val gtkShortcutPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard

The trigger that triggers this shortcut.