Next: Event Contents, Previous: Events, Up: Events [Contents][Index]
Events represent keyboard or mouse activity or status changes of various sorts, such as process input being available or a timeout being triggered. The different event types are as follows:
A key was pressed.
Note: Modifier keys such as “control”, “shift”, and “alt” do not generate events; instead, they are tracked internally by SXEmacs, and non-modifier key presses generate events that specify both the key pressed and the modifiers that were held down at the time.
A button was pressed or released. Along with the button that was pressed or released, button events specify the modifier keys that were held down at the time and the position of the pointer at the time.
The pointer was moved. Along with the position of the pointer, these events also specify the modifier keys that were held down at the time.
A menu item was selected, the scrollbar was used, or a drag or a drop occurred.
Input is available on a process.
A timeout has triggered.
Some window-system-specific action (such as a frame being resized or
a portion of a frame needing to be redrawn) has occurred. The contents
of this event are not accessible at the elisp level, but
dispatch-event
knows what to do with an event of this type.
This is a special kind of event specifying that a particular function
needs to be called when this event is dispatched. An event of this type
is sometimes placed in the event queue when a magic event is processed.
This kind of event should generally just be passed off to
dispatch-event
. See Dispatching an Event.
Next: Event Contents, Previous: Events, Up: Events [Contents][Index]