MnemonicTrigger#
Superclasses: ShortcutTrigger, Object
A GtkShortcutTrigger that triggers when a specific mnemonic is pressed.
Mnemonics require a mnemonic modifier (typically Alt) to be pressed together with the mnemonic key.
Constructors#
- class MnemonicTrigger
- classmethod new(keyval: int) MnemonicTrigger#
Creates a
GtkShortcutTriggerthat will trigger whenever the key with the givenkeyvalis pressed and mnemonics have been activated.Mnemonics are activated by calling code when a key event with the right modifiers is detected.
- Parameters:
keyval – The keyval to trigger for