Advanced Search
Mail us
Home    Manuel    Links    Faq    Submit a tcl/tk Reference    Contact Us

    Some examples tcl/tk codes     Man of Bwidget     Man of blt     mkwidget screenshots     TkOgl     Video Demo real.


  How can I delete a binding?
 
 Give an empty-string command to the `bind` invocation.  For example, to
disable the Delete key in all entry fields:

bind Entry  {}

Also, see the documentation for the `bind` and `bindtags` commands.
There are several ways to disable or modify which types of bindings
(instance, class, etc.) occur and the order in which they are processed.

In Tk4.2+, there is an `event` command which allows for the
specification of virtual event names, like `<>`.  Tk4.2+ uses these
for bindings such as Cut/Copy/Paste.  Deleting bindings from a virtual
event works like so:

event delete <>