[TCLCORE] Re: TIP #158: Distinguish the two 'Enter' keys on Windows
by Benjamin Riefenstahl other posts by this author
Sep 26 2003 2:40PM messages near this date
Re: [TCLCORE] Re: TIP #158: Distinguish the two 'Enter' keys on Windows
|
Re: [TCLCORE] Re: TIP #158: Distinguish the two 'Enter' keys on Windows
Hi Frédéric,
Frédéric Bonnet <fbonnet@[...].net> writes:
> But the solution I had in mind was rather to implement Enter as
> KP_Enter code then to generate Return events by default on Windows :
>
> bind all <KP_Enter> {event generate %W <Return>}
>
> In this case, no need for Mod4. Moreover, KP_Enter would be
> available on all platforms.
Now *that's* a nice idea!
> Of course this doesn't solve the problem on the Mac, but I think the
> real priority here would be to complete the implementation of [event
> generate] on this platform.
Agree.
> ----- Small digression
> What is the purpose of the Mod4 modifier on common keyboards: does
> it already serve to distinguish numpad keys?
To summarize my state of information: I think that the "ModX"
modifiers are just stand-ins in X11, in case a keyboard has a modifier
that is not in the regular list of "Shift", (Num)"Lock" and "Control".
So the "ModX" keys are generic to cover "Alt", "Meta", "Hyper",
"Windows", "Option", "Command", "AltGr", just to mention the ones of
which I have heard.
There seems to be a (probably later) interface to map these in X11,
and that interface is used in Tk/X11 and emulated in Tk for other
platforms. So on Windows/Mac, as long as a "ModX" isn't already
taken, we can just use it, and "Mod4" just happens to be free on
Windows/Mac, I think. It may not be free on all X11 implementations,
though.
benny
-------------------------------------------------------
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
|