home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2 / Openstep-4.2-Intel-User.iso / NextLibrary / Frameworks / AppKit.framework / Versions / B / Resources / StandardKeyBinding.dict < prev    next >
Encoding:
Text File  |  1996-11-27  |  7.2 KB  |  166 lines

  1. /* StandardKeyBindings.dict - OPENSTEP for Mach version */
  2.  
  3. /*
  4.         Binding keys are a single letter with optional modifiers.  Standard \ooo and \Uxxxx 
  5.         escape sequences are recognized.  Modifier characters can precede the actual character. 
  6.         Valid modifier characters are:
  7.             ^ = NSControlKeyMask
  8.             ~ = NSAlternateKeyMask
  9.             $ = NSShiftKeyMask
  10.             # = NSNumericPadKeyMask
  11.             @ = NSCommandKeyMask (only allowed for function keys)
  12.  
  13.         If you wish to bind one of the characters used as a modifier, use must precede it 
  14.         with a backslash to keep it from being treated as a modifier flag.
  15.             
  16. */
  17.  
  18. {
  19.     /* All otherwise unbound control and command characters are no-ops */
  20.     "^" = "noop:";
  21.     "@" = "noop:";
  22.     
  23.     /* Keyboard UI related bindings */
  24.     /* The following bindings are somewhat special.  You really shouldn't change them unless you know what you're doing.  Don't use control modifiers here for special keys that generate control characters (ie ^m for the Return key) because you don't hold control while typing Return!  In fact, since the key binding manager looks at the unmodified characters for an event to determine matchine, it is possible to distinguish between Ctrl-i and Tab, for instance, because although the modified character for both keys is 0x09, the unmodified character for Ctrl-i is actually 'i'. */
  25.     "\015" = "insertNewline:";  /* carriage return */
  26.     "\012" = "insertNewline:";  /* new line */
  27.     "\003" = "insertNewline:";  /* enter (!) */
  28.     "\011" = "insertTab:";  /* tab */
  29.     "\031" = "insertBacktab:";  /* backtab (!) */
  30.     
  31.     "~\015" = "insertNewlineIgnoringFieldEditor:";  /* alt-carriage return */
  32.     "~\012" = "insertNewlineIgnoringFieldEditor:";  /* alt-new line */
  33.     "~\003" = "insertNewlineIgnoringFieldEditor:";  /* alt-enter (!) */
  34.     "~\011" = "insertTabIgnoringFieldEditor:";  /* alt-tab */
  35.  
  36.     "\033" = "complete:";  /* escape */
  37.     
  38.     /* Emacs bindings */
  39.     /* Note that on Mach we do not bind any of the meta emacs bindings like alt-f for moveWordForward:.  This is because to do so masks the ability to type European and Symbol characters.  A sample of how to add these yourself should be available. */
  40.     "^f" = "moveForward:";  /* logical */
  41.     "^b" = "moveBackward:";  /* logical */
  42.     "^p" = "moveUp:";
  43.     "^n" = "moveDown:";
  44.     "^a" = "moveToBeginningOfParagraph:";
  45.     "^e" = "moveToEndOfParagraph:";
  46.  
  47.     "^l" = "centerSelectionInVisibleArea:";
  48.     "^v" = "pageDown:";
  49.  
  50.     "^d" = "deleteForward:";
  51.     "^h" = "deleteBackward:";
  52.     "\010" = "deleteBackward:";  /* backspace */
  53.     "\177" = "deleteBackward:";  /* delete */
  54.     "^k" = "deleteToEndOfParagraph:";
  55.     "^y" = "yank:";
  56.  
  57.     "^t" = "transpose:";
  58.     "^o" = ("insertNewlineIgnoringFieldEditor:", "moveBackward:");
  59.  
  60.     /* Arrow keys with all kinds of modifiers */
  61.     "\UF702" = "moveLeft:"; /* physical, left arrow key */
  62.     "\UF703" = "moveRight:"; /* physical, right arrow key */
  63.     "\UF700" = "moveUp:"; /* up arrow key */
  64.     "\UF701" = "moveDown:"; /* down arrow key */
  65.  
  66.     "^\UF702" = "moveToBeginningOfLine:";  /* ctrl-left */
  67.     "^\UF703" = "moveToEndOfLine:";  /* ctrl-right */
  68.     "^\UF700" = "pageUp:";  /* ctrl-up */
  69.     "^\UF701" = "pageDown:";  /* ctrl-down */
  70.  
  71.     "~\UF702" = "moveWordBackward:";  /* alt-left */
  72.     "~\UF703" = "moveWordForward:";  /* alt-right */
  73.     "~\UF700" = ("moveUp:", "moveWordBackward:");  /* alt-up, not ideal */
  74.     "~\UF701" = ("moveDown:", "moveWordForward:");  /* alt-down, not ideal */
  75.  
  76.     "$\UF702" = "moveBackwardAndModifySelection:";  /* shift-left */
  77.     "$\UF703" = "moveForwardAndModifySelection:";  /* shift-right */
  78.     "$\UF700" = "moveUpAndModifySelection:";  /* shift-up */
  79.     "$\UF701" = "moveDownAndModifySelection:";  /* shift-down */
  80.  
  81.     "~$\UF702" = "moveWordBackwardAndModifySelection:";  /* alt-shift-left */
  82.     "~$\UF703" = "moveWordForwardAndModifySelection:";  /* slt-shift-right */
  83.     "~$\UF700" = ("moveUpAndModifySelection:", "moveWordBackwardAndModifySelection:");  /* alt-shift-up, not ideal */
  84.     "~$\UF701" = ("moveDownAndModifySelection:", "moveWordForwardAndModifySelection:");  /* alt-shift-down, not ideal */
  85.  
  86.     "^~\UF700" = ("pageUp:", "moveWordBackward:");  /* ctrl-alt-up, not ideal */
  87.     "^~\UF701" = ("pageDown:", "moveWordForward:");  /* ctrl-alt-down, not ideal */
  88.  
  89.     /* Function keys */
  90.     /* Most function keys are bound to noop:  a few, actually do useful things */
  91.     "\UF728" = "deleteForward:";  /* Delete */
  92.     "\UF729" = "moveToBeginningOfParagraph:";  /* Home */
  93.     "\UF72B" = "moveToEndOfParagraph:";  /* End */
  94.     "^\UF729" = "moveToBeginningOfDocument:";  /* Cmd-Home */
  95.     "^\UF72B" = "moveToEndOfDocument:";  /* Cmd-End */
  96.     "$\UF729" = "moveToBeginningOfParagraphAndModifySelection:";  /* Shift-Home */
  97.     "$\UF72B" = "moveToEndOfParagraphAndModifySelection:";  /* Shift-End */
  98.     "\UF72C" = "pageUp:";  /* Page Up */
  99.     "\UF72D" = "pageDown:";  /* Page Down */
  100.     "\UF739" = ("moveToBeginningOfLine:", "deleteToEndOfLine:");  /* Clear Line */
  101.     "\UF705" = "complete:";  /* F2 */
  102.  
  103.     "\UF704" = "noop:";  /* F1 */
  104.     "\UF706" = "noop:";  /* F3 */
  105.     "\UF707" = "noop:";  /* F4 */
  106.     "\UF708" = "noop:";  /* F5 */
  107.     "\UF709" = "noop:";  /* F6 */
  108.     "\UF70A" = "noop:";  /* F7 */
  109.     "\UF70B" = "noop:";  /* F8 */
  110.     "\UF70C" = "noop:";  /* F9 */
  111.     "\UF70D" = "noop:";  /* F10 */
  112.     "\UF70E" = "noop:";  /* F11 */
  113.     "\UF70F" = "noop:";  /* F12 */
  114.     "\UF710" = "noop:";  /* F13 */
  115.     "\UF711" = "noop:";  /* F14 */
  116.     "\UF712" = "noop:";  /* F15 */
  117.     "\UF713" = "noop:";  /* F16 */
  118.     "\UF714" = "noop:";  /* F17 */
  119.     "\UF715" = "noop:";  /* F18 */
  120.     "\UF716" = "noop:";  /* F19 */
  121.     "\UF717" = "noop:";  /* F20 */
  122.     "\UF718" = "noop:";  /* F21 */
  123.     "\UF719" = "noop:";  /* F22 */
  124.     "\UF71A" = "noop:";  /* F23 */
  125.     "\UF71B" = "noop:";  /* F24 */
  126.     "\UF71C" = "noop:";  /* F25 */
  127.     "\UF71D" = "noop:";  /* F26 */
  128.     "\UF71E" = "noop:";  /* F27 */
  129.     "\UF71F" = "noop:";  /* F28 */
  130.     "\UF720" = "noop:";  /* F29 */
  131.     "\UF721" = "noop:";  /* F30 */
  132.     "\UF722" = "noop:";  /* F31 */
  133.     "\UF723" = "noop:";  /* F32 */
  134.     "\UF724" = "noop:";  /* F33 */
  135.     "\UF725" = "noop:";  /* F34 */
  136.     "\UF726" = "noop:";  /* F35 */
  137.     "\UF727" = "noop:";  /* Insert */
  138.     "\UF72A" = "noop:";  /* Begin */
  139.     "\UF72E" = "noop:";  /* Print Screen */
  140.     "\UF72F" = "noop:";  /* Scroll Lock */
  141.     "\UF730" = "noop:";  /* Pause */
  142.     "\UF731" = "noop:";  /* Sys Req */
  143.     "\UF732" = "noop:";  /* Break */
  144.     "\UF733" = "noop:";  /* Reset */
  145.     "\UF734" = "noop:";  /* Stop */
  146.     "\UF735" = "noop:";  /* Menu */
  147.     "\UF736" = "noop:";  /* User */
  148.     "\UF737" = "noop:";  /* System */
  149.     "\UF738" = "noop:";  /* Print */
  150.     "\UF73A" = "noop:";  /* Clear Display */
  151.     "\UF73B" = "noop:";  /* Insert Line */
  152.     "\UF73C" = "noop:";  /* Delete Line */
  153.     "\UF73D" = "noop:";  /* Insert Char */
  154.     "\UF73E" = "noop:";  /* Delete Char */
  155.     "\UF73F" = "noop:";  /* Prev */
  156.     "\UF740" = "noop:";  /* Next */
  157.     "\UF741" = "noop:";  /* Select */
  158.     "\UF742" = "noop:";  /* Execute */
  159.     "\UF743" = "noop:";  /* Undo */
  160.     "\UF744" = "noop:";  /* Redo */
  161.     "\UF745" = "noop:";  /* Find */
  162.     "\UF746" = "noop:";  /* Help */
  163.     "\UF747" = "noop:";  /* Mode Switch */
  164.  
  165. }
  166.