| Did you know ... | Search Documentation: |
| modifier<-convert |
s (shift), c
(control) and m (meta) to a modifier
object that demands the specified keys to be depressed and the others
not to be depressed.
The empty atom (” ), transforms into a modifier that demands all keys not to be depressed.
This is the normal way to specify modifiers. For example, the following defines a click_gesture for handling shift-click:
new(G, click_gesture(left, 's', single,
message(@event?receiver,
selected, @on)).
Converted modifiers are stored in the hash-table @modifiers for better performance and to exploit reuse. As a consequence, modifiers created this way should by treated read-only.
->has_modifier ->initialise .modifier