About my projects, examples and tutorials
Gnome::Gtk4::MnemonicTrigger

Gnome::Gtk4::MnemonicTrigger

Description§

A Gnome::Gtk4::ShortcutTrigger that triggers when a specific mnemonic is pressed.

Mnemonics require a *mnemonic modifier* (typically <kbd>Alt</kbd>) to be pressed together with the mnemonic key.

Uml Diagram§

UNKNOWN image§

=for image :class<inline> :src<asset_files/images/plantuml/MnemonicTrigger.png> :width<70\%>

Class initialization§

new§

:native-object§

Create an object using a native object from an object of the same type found elsewhere. See also Gnome::N::TopLevelSupportClass.

multi method new ( N-Object() :$native-object! )
Code

new-mnemonictrigger§

Creates a Gnome::Gtk4::ShortcutTrigger that will trigger whenever the key with the given $keyval is pressed and mnemonics have been activated.

Mnemonics are activated by calling code when a key event with the right modifiers is detected.

method new-mnemonictrigger ( UInt() $keyval --> Gnome::Gtk4::MnemonicTrigger )
Code
  • $keyval; The keyval to trigger for.

Methods§

get-keyval§

Gets the keyval that must be pressed to succeed triggering $self.

method get-keyval (--> UInt )
Code

Return value; the keyval.