This is the mail archive of the
xconq7@sources.redhat.com
mailing list for the Xconq project.
Re: standard event bindings
- From: Jim Kingdon <kingdon at panix dot com>
- To: hronne at pp dot sbbs dot se
- Cc: tadalunch at s5 dot xrea dot com, xconq7 at sources dot redhat dot com
- Date: Thu, 20 Jun 2002 11:15:59 -0400 (EDT)
- Subject: Re: standard event bindings
- References: <l03130300b9366cf3fbe7@[217.115.39.60]>
> I therefore mapped KP + and KP - to zoom in and out in the mac
> (non-Tcl) interface a long time ago. Maybe we should do this as a rule
> on all platforms
Well, it is kind of bad to have it be a Mac-only thing.
> get rid of the curly braces altogether?
Unfortunately, this doesn't work so well either. All the keyboards I
use (for example, laptop keyboards) don't have a convenient keypad (it
involves using a Fn key or a "keypad" mode or some such).
I can't help but think there is a simpler solution. Usually in tcl,
if one has confusion between "{}" as "{" and as empty string, it has
to do with getting quoting wrong. Seems to me (as far as I can tell
from the bind(n) manpage) that "%K" is wrong and it should be just %K.
In tcl, {} are quotes, so I think what is happening is that tcl quotes
for you and then the "" quote it again, so it then does become
impossible to distinguish between "{" and an empty string. I haven't
tested this hypothesis, though.
I also might move the if statement inside handle_key_binding but I
doubt that has a particularly strong connection to this problem.