Gnome::Gtk4::KeyvalTrigger
Description
A Gnome::Gtk4::ShortcutTrigger that triggers when a specific keyval and modifiers are pressed.
Class initialization
new
:native-object
Create an object using a native object from elsewhere. See also Gnome::N::TopLevelSupportClass.
multi method new ( N-Object :$native-object! )
new-keyvaltrigger
Creates a Gnome::Gtk4::ShortcutTrigger that will trigger whenever the key with the given $keyval
and $modifiers
is pressed.
method new-keyvaltrigger ( UInt() $keyval, UInt $modifiers --> Gnome::Gtk4::KeyvalTrigger \)
$keyval; The keyval to trigger for.
$modifiers; the modifiers that need to be present.
Methods
get-keyval
Gets the keyval that must be pressed to succeed triggering $self
.
method get-keyval (--> UInt )
Return value; the keyval.
get-modifiers
Gets the modifiers that must be present to succeed triggering $self
.
method get-modifiers (--> UInt )
Return value; the modifiers.