1.104 <GtkKeyvalTrigger>

Class: <GtkKeyvalTrigger>

It derives from <GtkShortcutTrigger>.

Triggers when a specific keyval and modifiers are pressed.

Properties

Property: keyval-trigger:keyval self

The key value for the trigger.

Its value is an unsigned 32-bit integer.

It can only be set when the object is made, with #:keyval.

Property: keyval-trigger:modifiers self

The key modifiers for the trigger.

Its value is a <GdkModifierType> (or, to set it, a list of its symbols, or one of them).

It can only be set when the object is made, with #:modifiers.

Procedures

Method: keyval-trigger:get-keyval self ⇒ %return
Method: get-keyval self ⇒ %return

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

self

Passed: a <GtkKeyvalTrigger>.

a keyval <GtkShortcutTrigger>

%return

Returned: an unsigned 32-bit integer.

the keyval

Method: keyval-trigger:get-modifiers self ⇒ %return
Method: get-modifiers self ⇒ %return

Gets the modifiers that must be present to succeed triggering self.

self

Passed: a <GtkKeyvalTrigger>.

a keyval <GtkShortcutTrigger>

%return

Returned: a <GdkModifierType>.

the modifiers

Procedure: keyval-trigger:new keyval modifiers ⇒ %return

Creates a <GtkShortcutTrigger> that will trigger whenever the key with the given keyval and modifiers is pressed.

keyval

Passed: an unsigned 32-bit integer.

The keyval to trigger for

modifiers

Passed: a <GdkModifierType>, or a list of its symbols, or one of them.

the modifiers that need to be present

%return

Returned: a <GtkShortcutTrigger>.

A new <GtkShortcutTrigger>