beetlebug▾
/

event add

Adds physical sequences to a virtual event.

event add VIRTUAL SEQUENCE ?SEQUENCE ...?

Description

VIRTUAL is a name such as <<Copy>>. Each SEQUENCE is a sequence of bind, and cannot be a virtual event. The virtual event keeps the sequences that it has.

Returns

An empty string.

Examples

% event add <<Copy2>> <Control-Key-c> <Key-F5>
> event add <<Copy2>> <1>
> event info <<Copy2>>
<Control-Key-c> <Key-F5> <Button-1>

Errors

% event add <<A>>
wrong # args: should be "event add <<virtual>> sequence ?sequence ...?"
-errorcode TCL WRONGARGS

% event add A <1>
virtual event "A" is badly formed
-errorcode NONE

% event add <<A>> <<B>>
virtual event not allowed in definition of another virtual event
-errorcode NONE

% event add <<A>> <Bad>
bad event type or keysym "Bad"
-errorcode NONE

Facts

Capability
None.
Tcl release
Tcl 9.1 and 8.6.
Since
ztk 1.0.0-beta.1

See also