by Michael S. Kaplan, published on 2004/12/28 03:34 -05:00, original URI: http://blogs.msdn.com/b/michkap/archive/2004/12/28/333168.aspx
The quote in the title is an allusion to a quote from the Simpsons. Now the ANY key quote is not my favorite quote from Homer J. Simpson (actually, this is), but its in the top five.
And it popped into my head as I prepared to talk about the AltGR key, which is a key that does not exist on the keyboard upon which I am typing right now.
Anyway....
In a comment from a couple of days ago, Norman Diamond suggested that AltGr stood for Alternate Graphics. Thats fine as far as it goes, but only the first two words of his post suggest what AltGR stands for, and the words do not really explain what it means, though he talks a bit about what it does. So the question remains, where does ALTGR come from as a term?
Well, it does indeed stand for Alternate Graphics (or Alternative Grafiken). The original intended purpose of it was to have an easy way to get at the table-based graphical characters that were so handy to use in a console application, located on the right side of the spacebar.
It was, however, used quite actively for keyboards that needed extra keys (and there is no layout I know of today in Windows that supports the graphical characters except by accident in consoles, and they do not use ALTGR to get there). This does not apply to the US english keyboard hardware, so they just put a RIGHT ALT key there which will actually act as if it were the ALTGR key any time you switch to a layout that makes use of this extra shift state. Note that this extra shift state is also available by hitting <Ctrl>+<Alt>, but thats more work to type. So having a single key to type instead is much cooler.
Of course, this can cause problems since sometimes people make shortcuts using <Ctrl>+<Alt>, which screws with what people might want to actually do with a keyboard layout. In fact, Raymond Chen talked about Why Ctrl+Alt shouldn't be used as a shortcut modifier last March, explaining this fact.
I would extend Raymond's very good advice to anybody who uses MSKLC to create custom keyboards (note that MSKLC warns about assigning <Ctrl>+<Shift> to keyboards since many shortcuts are assigned there). Or people who uses Word to create shortcuts. Or people on the Microsoft Word team who created tons of "useful" shortcuts that do not mind stomping on what a keyboard layout may have assigned to a keystroke combination1. The key is to think about the keyboards and/or the shortcuts you create in the larger context of where you may either step on others or be stepped upon by them.
And if you create a custom keyboard with MSKLC, consider putting one of the graphical BOX DRAWING characters in the ALTGR state somewhere, so that you can be one of the cool people that makes the AltGR key meaningful again. Its like having an easter egg in software, but with an important recreational purpose!
1 - Every few months I start looking at the Word object model and its KeyBindings collection and related trivia to create a Word Add-in that will listen for keyboard changes and any time a WM_INPUTLANGCHANGE notification is received it would remove the Word shortcuts that conflicted with actual keyboard assignments. I find the undone project I was working on, get into it for a few hours, and then realize that this is something that the Word team or the Offce team ought to put together and build into the product. So I send off some mails and they agree with me and then it seems to go nowhere. A few months later it starts over again. Maybe one day one of us will have a finished solution for this problem. :-)
This post brought to you by "╦" (U+2566, a.k.a. BOX DRAWINGS DOUBLE DOWN AND HORIZONTAL).
The competition in the BOX DRAWING block of Unicode to do a topical sponsorship of the post was fierce; it was finally chosen by the drawing of lots, in order to avoid violence.
In the future, an effort will be made to woo "appropriate sponsorship" from Unicode characters based on actual relevance to the specific post. Otherwise, its like a celebrity endorsement for a product that the famous person does not use -- and I hate that.
# Uwe Keim on 28 Dec 2004 3:25 AM:
# Michael Kaplan on 28 Dec 2004 4:30 AM:
# Centaur on 28 Dec 2004 7:36 AM:
# Michael Kaplan on 28 Dec 2004 8:30 AM:
# Philip Newton on 29 Dec 2004 10:23 AM:
# Michael Giagnocavo on 29 Dec 2004 11:07 AM:
# Michael Kaplan on 29 Dec 2004 11:27 AM:
Kelly on 18 Apr 2011 11:55 AM:
Ok, now how do you make it STOP. I cannot use apostrophes or question marks because of this stupid alt gr button that I every so often accidently touch. using shift key and button for backlask and question mark, I get É, no shift é. And if I use the apostrophe button I get è and with shift to make quotes I get È.
I keep pressed the alt gr button on its on, in combination with the alt key and shift and control. Nothing works! How do you make it stop<question mark, question mark!>
Michael S. Kaplan on 19 Apr 2011 9:02 AM:
Don't use a keyboard that defines the shift state; there is no other workaround....
referenced by
2012/04/26 Michael's Keyboard Laws for Developers, Part 5
2010/03/29 What the @!#$% is up with the Tibetan keyboard? (aka To be good enough for government work?)
2008/01/17 Virtual PC + Word 2007 ≠ AltGr support?
2007/11/16 Detecting ALTGR fails when ALTGR isn't there (Just Czech-ed out in Word 2007)
2007/09/08 Detecting ALTGR can only hope to work when AlTGR is in fact there....
2007/07/18 Sometimes they are not as helpful shortcuts
2007/03/05 You're not the one out of sequence, and that's the Word
2006/11/25 Even if they aren't talking international, at least they aren't stomping international!
2006/04/17 Get off my freaking key!
2006/03/15 Multilingual keyboards and Microsoft Word
2005/05/02 Virtual PC needs international thought about its keyboard support
2005/04/21 Intuitive is in the eye of the beholder