Article View: comp.sys.mac
Article #18479Re: TextEdit and Arrow keys
From: Brian H. Powell
Date: Tue, 25 Aug 1987 19:05
Date: Tue, 25 Aug 1987 19:05
43 lines
2984 bytes
2984 bytes
In article <1599@apple.UUCP>, tecot@apple.UUCP (Ed Tecot) writes:
<Concerning the use of shift-arrow keys...>
> There is one major problem with that approach: The user will not be able to
> use the =, /, *, and + keys on the numeric keypad section of the MacPlus
> keyboard (as well as the separate keypad that some users have).
Let me quote from IM-IV, page IV-5. "If the use of Shift-arrow for
making selections is more important to your application than the numeric
keypad, the following paragraphs describe how it should work." (&c., the
following paragraphs describe what shift-arrow is supposed to do.)
First of all, the statement by Ed Tecot is not correct, at least in my
implementation. My code only looks at the key-codes if the shift-key is held
down (and as I mentioned in my previous message, only if the machine I'm using
has the 64K or 128K ROMs). On a Mac-Plus keyboard, if the user hits (keypad)
'*', he gets an asterisk. If the user hits shift-(keypad)asterisk, he gets
shift-right-arrow. On a Mac-Plus keyboard there is some question as to why
the user would press shift-asterisk on the keypad.
The problem occurs with the old separate numeric keypad. There, the only
way to generate an '*', '+', '/', and ',' on the keypad is with the shift-key
held down. The quote from IM-IV above applies here. It's more important for
the TextEdit portion of my application to support shift-arrow keys than it is
to support special characters on the old numeric keypad.
So, in conclusion, the only thing my code doesn't support is the special
characters on the old separate numeric keypad. On the Plus keyboard,
shift-keypad characters can result in shift-arrows, but I consider
shift-keypad keydowns to be of questionable use. On the ADB keyboards, and
any future keyboards for the SE, II or any future machine, shift-keypad
keydowns will result in whatever the event manager feels appropriate. This
means that Apple could add, at some later date on some future keyboard,
characters to be entered for shift-keypad events, and my program will support
them.
Brian H. Powell
UUCP: {ihnp4,seismo,ctvax}!ut-sally!brian
ARPA: brian@sally.UTEXAS.EDU
_Work_ _Not Work_
Department of Computer Sciences P.O. Box 5899
Taylor Hall 2.124 Austin, TX 78763-5899
The University of Texas at Austin (512) 346-0835
Austin, TX 78712-1188
(512) 471-9536
Technical Details
Message-ID:
<8837@ut-sally.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!ut-sally!brianReferences:
<8821@ut-sally.UUCP> <1599@apple.UUCP>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!ut-sally!brian From: brian@ut-sally.UUCP (Brian H. Powell) Newsgroups: comp.sys.mac Subject: Re: TextEdit and Arrow keys Message-ID: <8837@ut-sally.UUCP> Date: Tue, 25-Aug-87 15:05:44 EDT Article-I.D.: ut-sally.8837 Posted: Tue Aug 25 15:05:44 1987 Date-Received: Wed, 26-Aug-87 07:25:30 EDT References: <8821@ut-sally.UUCP> <1599@apple.UUCP> Organization: U. Texas CS Dept., Austin, Texas Lines: 43 Keywords: A response from Apple