Re: [TCLCORE] Re: TIP #158: Distinguish the two 'Enter' keys on Windows
by Joe English other posts by this author
Sep 26 2003 3:55PM 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
Frédéric Bonnet wrote:
> ----- Small digression
> What is the purpose of the Mod4 modifier on common keyboards: does it
> already serve to distinguish numpad keys? Does a Mod4 key exist on some
> keyboards or is it purely abstract?
In addition to the usual "Shift" modifier, Symbolics LISP
machines had Meta, Super, and Hyper shift keys. PC keyboards
have Control, Alt, Num Lock, Scroll Lock, and (sometimes) AltGr.
Some Linux desktop environments configure the "Windows" key
as an additional "Meta" modifier. It's been a while since
I've used a Sun keyboard, but IIRC they had different "Alt"
and "Meta" keys.
To accomodate all these different keyboard types, the X
protocol defines 8 modifiers: Shift, (Caps) Lock, Control,
and Mod1 through Mod5, the latter of which mean "any extra
modifier keys that happen to be present on whatever weird-ass
keyboard you've got" :-)
(I've lost track of this thread, but IMO using Mod4 to distinguish
keys on the numeric keypad seems like a reasonable decision.
Bindings for <KeyPress-Return> would also fire for KP_Enter,
which is Usually The Right Thing; and in cases where it's not,
the application can override it with <Mod4-KeyPress-Return> .
I think this would be a reasonable thing to do on all platforms,
including X.)
--Joe English
jenglish@[...].com
-------------------------------------------------------
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
|