There are four aspects to an event filter:
id
key
modifier
click
count
id
. The
id
determines the type of event for the
filter. The key
, modifiers
, and
click
count
fields are used to further
narrow the scope of the filter for a given event id
.
For example, the set of events selected by the "Key Down"
event id
can be further narrowed by specifying
a key
filter of "C." This can be narrowed
even further by specifying the modifier
"Control." This filter will be triggered when the
operation's component has the keyboard focus and the user
presses Control-C.
Available modifiers depend on the event id
.
For key
events, the modifiers are:
The click count
element is important only for
mouse events. To catch a double-click, the event
id
is "Mouse Down" and the click
count
is 2.
A message filter has three parts:
name
type
target
name
name
must be specified, but the type
and
target
name
can be left blank.
The type
and target
name
are additional filters within the scope
of the message name.
The component for which the operation is defined must be the originator of the message, or the filter will not be triggered. For example, you might have a custom subgroup inside your group and that subgroup sends out "Apply" messages. To trigger off of the "Apply" message, you should select the subgroup and then edit its operations attribute. Then define an operation that has a message filter with the name "Apply."
See also: