ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> Tcl-core
Tcl-core
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved