beetlebug▾
/

event delete

Removes sequences from a virtual event, or removes the virtual event.

event delete VIRTUAL ?SEQUENCE ...?

Description

With SEQUENCE, removes each SEQUENCE from VIRTUAL. With no SEQUENCE, removes each sequence of VIRTUAL. A sequence or a virtual event that is not defined gives no error. The bindings of VIRTUAL stay, and event generate still runs them.

Returns

An empty string.

Examples

% event add <<Cut2>> <Control-Key-x> <Key-F6>
> event delete <<Cut2>> <Key-F6>
> event info <<Cut2>>
<Control-Key-x>

% event delete <<Cut2>>
> event info <<Cut2>>

Errors

% event delete
wrong # args: should be "event delete virtual ?sequence ...?"
-errorcode NONE

Facts

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

See also