home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / mac / programm / 12975 < prev    next >
Encoding:
Internet Message Format  |  1992-07-23  |  3.6 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!wupost!waikato.ac.nz!ldo
  2. From: ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: Arrow-modifier keys (was Re: Think C is (notso) Great)
  5. Message-ID: <1992Jul24.182601.9637@waikato.ac.nz>
  6. Date: 24 Jul 92 18:26:00 +1200
  7. References: <12JUL199213052196@uhdvx3> <1992Jul20.155359.9503@cimage.com> <de19-220792055815@mac41-pg2.umd.edu> <1992Jul22.141021.20135@hobbes.kzoo.edu>
  8. Organization: University of Waikato, Hamilton, New Zealand
  9. Lines: 60
  10.  
  11. In article <1992Jul22.141021.20135@hobbes.kzoo.edu>, k044477@hobbes.kzoo.edu (Jamie R. McCarthy) writes:
  12. > I'd like ThC to join with the rest of the Mac world, in which
  13. > cmd-arrowkey means "go this way for one word/paragraph/page" and
  14. > option-arrowkey means "go this way to the end of the line/document."
  15. > ThC has this backwards.  (And BBEdit has it backwards vertically but not
  16. > horizontally.  Turns my brain to scrambled cheese.)
  17.  
  18. I beg to disagree. From your description, it sounds like THINK C has it
  19. the right way round.
  20.  
  21. The official Macintosh conventions for use of modifiers with arrow keys
  22. are documented in Chapter 1 of Inside Mac Vol IV.
  23.  
  24. Quote (page IV-4): "Holding down the Command key while pressing an arrow key
  25. should move the insertion point to the appropriate edge of the window. If the
  26. insertion point is already at the edge of the window, the document should be
  27. scrolled one windowful in the appropriate direction and the insertion point
  28. should move to the same edge of the new windowful."
  29.  
  30. Of the programs I use, the MPW Shell (3.2 and later) follows this prescription
  31. exactly for vertical movement, but not for horizontal movement. Both
  32. MPW and MacWrite II interpret command-left-arrow as "move to beginning of
  33. line" and command-right-arrow as "move to end of line", regardless of the
  34. width of the window.
  35.  
  36. In MacWrite II, command-up-arrow and command-down-arrow take you to the
  37. beginning and end of the document.
  38.  
  39. I could fix the definition of command-left-arrow and command-right-arrow in
  40. MPW by redefining the default key bindings, except that there don't seem
  41. to be any "MovePageRight" or "MovePageLeft" editor commands. :-(
  42.  
  43. Further IM quote (page IV-5): "The Option key is reserved as a 'semantic
  44. modifier' key. The application determines what the units are. For example, in
  45. a word processor, where the basic semantic unit is the character and the next
  46. larger unit is the word, Option-Left Arrow and Option-Right Arrow might move
  47. the insertion point to the beginning and end, respectively, of a word."
  48.  
  49. Both MacWrite II and MPW follow this behaviour.
  50.  
  51. MPW further defines command-option-up-arrow to move to the beginning of
  52. the file, and command-option-down-arrow to move to the end of the file.
  53. I find this very useful. It would be nice if they redefined command-left-
  54. arrow and command-right-arrow to work according to IM4, and used command-option-
  55. left-arrow and command-option-right-arrow to move to the beginning and
  56. end of the line.
  57.  
  58. In all cases, in both programs, holding down the shift key while pressing
  59. one of the above sequences means to extend the selection to the new position
  60. (except for one small bug which I'm sure will be fixed in the next version
  61. of MPW ;-)).
  62.  
  63. So there you go. There's an official standard for these things, and it appears
  64. that at least a couple of programs have heard of some part of it. What are the
  65. chances of getting the rest of the world to conform?
  66.  
  67. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  68. Computer Services Dept                     fax: +64-7-838-4066
  69. University of Waikato            electric mail: ldo@waikato.ac.nz
  70. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
  71.