Re: [TCLCORE] Re: TIP #158: Distinguish the two 'Enter' keys on Windows
by George Howlett other posts by this author
Sep 29 2003 6:46PM messages near this date
[TCLCORE] Re: TIP #158: Distinguish the two 'Enter' keys on Windows
|
Re: [TCLCORE] Re: TIP #158: Distinguish the two 'Enter' keys on
Windows
In message <m3u16vplai.fsf@[...].net> , Benjamin Riefensta
hl writes:
> The text you quoted from me didn't say there was something wrong with
> using "Mod4".
Sorry. That was a summary of my position not yours.
> As an alternative to "Mod4", [event generate] has been proposed. I
> like that idea.
>
> Implement <KP_Enter> and add a default binding in the init scripts
> like
>
> bind all <KP_Enter> {event generate %W <Return>}
>
> That would satisfy the compatibility requirement nicely and in a
> straight-forward way. It would still make Tk on Windows compatible
> with X11.
>
> Of course the same could be done with all (or at least most) other
> keys on the keypad.
Your suggestion above is the clear winner. It puts look-and-feel
policy in the Tcl code layer (where it can be augmented, overridden,
etc).
It
1) makes it easy for Tk programmers porting their X11-based
programs on Windows.
2) gives Tk programmers on Windows access to numeric keypad
keys (in the standard X11 fashion).
3) is backward compatible with any existing Windows-based Tk
program.
--gah
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Tcl-Core mailing list
Tcl-Core@[...].net
https://lists.sourceforge.net/lists/listinfo/tcl-core
Thread:
Benjamin Riefenstahl
=?ISO-8859-1?Q?Fr=E9d=E9ric_Bonnet?=
Benjamin Riefenstahl
George Howlett
Benjamin Riefenstahl
George Howlett
Vince Darley
Joe English
Vince Darley
|