If a binding for <Alt-Key> is created or added on the
'all' tag, normal handling of special keystrokes (e.g.,
Alt-F4) no longer works.
How to reproduce:
1. Invoke wish84.exe
2. execute one of the following commands:
bind all <Alt-Key> [bind all <Alt-Key>];
bind all <Alt-Key> {+puts example};
bind all <Alt-Key> {puts example};
(any command that modifies the binding of <Alt-Key> on
the 'all' tag, even ones that should leave any existing
binding still in effect)
3. Focus the main window and press Alt-F4.
Expected behavior: The window closes
Actual behavior: the window does not close.
This problem exists in ActiveState ActiveTcl 8.4.12.0
as well as a self-compiled version of tk 8.4.10.
Tested on a Windows XP SP2 machine.
The problem apparently arises because bindings created
by TkCreateBindingProcedure do not behave like normal
bindings, acting instead like empty bindings when
queried or modified by the [bind] command.