KeyEvent.matches

Matches a key event against a keyval and modifiers.

This is typically used to trigger keyboard shortcuts such as Ctrl-C.

Partial matches are possible where the combination matches if the currently active group is ignored.

Note that we ignore Caps Lock for matching.

class KeyEvent
GdkKeyMatch
matches
(
uint keyval
,
GdkModifierType modifiers
)

Parameters

keyval uint

the keyval to match

modifiers GdkModifierType

the modifiers to match

Return Value

Type: GdkKeyMatch

a GdkKeyMatch value describing whether @event matches

Meta