home *** CD-ROM | disk | FTP | other *** search
/ OpenStep (Enterprise) / OpenStepENTCD.toast / OEDEPLOY / USER.Z / StandardKeyBinding.dict < prev    next >
Text File  |  1996-09-09  |  6KB  |  146 lines

  1. /* StandardKeyBindings.dict - OPENSTEP for Mach version */
  2.  
  3. {
  4.     /* All otherwise unbound control characters are no-ops */
  5.     "^" = "noop:";
  6.     
  7.     /* Keyboard UI related bindings */
  8.     /* 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'. */
  9.     "\015" = "insertNewline:";  /* carriage return */
  10.     "\012" = "insertNewline:";  /* new line */
  11.     "\003" = "insertNewline:";  /* enter (!) */
  12.     "\011" = "insertTab:";  /* tab */
  13.     "\031" = "insertBacktab:";  /* backtab (!) */
  14.     
  15.     "~\015" = "insertNewlineIgnoringFieldEditor:";  /* alt-carriage return */
  16.     "~\012" = "insertNewlineIgnoringFieldEditor:";  /* alt-new line */
  17.     "~\003" = "insertNewlineIgnoringFieldEditor:";  /* alt-enter (!) */
  18.     "~\011" = "insertTabIgnoringFieldEditor:";  /* alt-tab */
  19.  
  20.     "\033" = "complete:";  /* escape */
  21.     
  22.     /* Emacs bindings */
  23.     /* 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. */
  24.     "^f" = "moveForward:";  /* logical */
  25.     "^b" = "moveBackward:";  /* logical */
  26.     "^p" = "moveUp:";
  27.     "^n" = "moveDown:";
  28.     "^a" = "moveToBeginningOfParagraph:";
  29.     "^e" = "moveToEndOfParagraph:";
  30.  
  31.     "^l" = "centerSelectionInVisibleArea:";
  32.     "^v" = "pageDown:";
  33.  
  34.     "^d" = "deleteForward:";
  35.     "^h" = "deleteBackward:";
  36.     "\010" = "deleteBackward:";  /* backspace */
  37.     "\177" = "deleteBackward:";  /* delete */
  38.     "^k" = "deleteToEndOfParagraph:";
  39.     "^y" = "yank:";
  40.  
  41.     "^t" = "transpose:";
  42.     "^o" = ("insertNewlineIgnoringFieldEditor:", "moveBackward:");
  43.  
  44.     /* Arrow keys with all kinds of modifiers */
  45.     "\UF702" = "moveLeft:"; /* physical, left arrow key */
  46.     "\UF703" = "moveRight:"; /* physical, right arrow key */
  47.     "\UF700" = "moveUp:"; /* up arrow key */
  48.     "\UF701" = "moveDown:"; /* down arrow key */
  49.  
  50.     "^\UF702" = "moveToBeginningOfLine:";  /* ctrl-left */
  51.     "^\UF703" = "moveToEndOfLine:";  /* ctrl-right */
  52.     "^\UF700" = "pageUp:";  /* ctrl-up */
  53.     "^\UF701" = "pageDown:";  /* ctrl-down */
  54.  
  55.     "~\UF702" = "moveWordBackward:";  /* alt-left */
  56.     "~\UF703" = "moveWordForward:";  /* alt-right */
  57.     "~\UF700" = ("moveUp:", "moveWordBackward:");  /* alt-up, not ideal */
  58.     "~\UF701" = ("moveDown:", "moveWordForward:");  /* alt-down, not ideal */
  59.  
  60.     "$\UF702" = "moveBackwardAndModifySelection:";  /* shift-left */
  61.     "$\UF703" = "moveForwardAndModifySelection:";  /* shift-right */
  62.     "$\UF700" = "moveUpAndModifySelection:";  /* shift-up */
  63.     "$\UF701" = "moveDownAndModifySelection:";  /* shift-down */
  64.  
  65.     "~$\UF702" = "moveWordBackwardAndModifySelection:";  /* alt-shift-left */
  66.     "~$\UF703" = "moveWordForwardAndModifySelection:";  /* slt-shift-right */
  67.     "~$\UF700" = ("moveUpAndModifySelection:", "moveWordBackwardAndModifySelection:");  /* alt-shift-up, not ideal */
  68.     "~$\UF701" = ("moveDownAndModifySelection:", "moveWordForwardAndModifySelection:");  /* alt-shift-down, not ideal */
  69.  
  70.     "^~\UF700" = ("pageUp:", "moveWordBackward:");  /* ctrl-alt-up, not ideal */
  71.     "^~\UF701" = ("pageDown:", "moveWordForward:");  /* ctrl-alt-down, not ideal */
  72.  
  73.     /* Function keys */
  74.     /* Most function keys are bound to noop:  a few, actually do useful things */
  75.     "\UF728" = "deleteForward:";  /* Delete */
  76.     "\UF729" = "moveToBeginningOfDocument:";  /* Home */
  77.     "\UF72B" = "moveToEndOfDocument:";  /* End */
  78.     "\UF72C" = "pageUp:";  /* Page Up */
  79.     "\UF72D" = "pageDown:";  /* Page Down */
  80.     "\UF739" = ("moveToBeginningOfLine:", "deleteToEndOfLine:");  /* Clear Line */
  81.     "\UF705" = "complete:";  /* F2 */
  82.  
  83.     "\UF704" = "noop:";  /* F1 */
  84.     "\UF706" = "noop:";  /* F3 */
  85.     "\UF707" = "noop:";  /* F4 */
  86.     "\UF708" = "noop:";  /* F5 */
  87.     "\UF709" = "noop:";  /* F6 */
  88.     "\UF70A" = "noop:";  /* F7 */
  89.     "\UF70B" = "noop:";  /* F8 */
  90.     "\UF70C" = "noop:";  /* F9 */
  91.     "\UF70D" = "noop:";  /* F10 */
  92.     "\UF70E" = "noop:";  /* F11 */
  93.     "\UF70F" = "noop:";  /* F12 */
  94.     "\UF710" = "noop:";  /* F13 */
  95.     "\UF711" = "noop:";  /* F14 */
  96.     "\UF712" = "noop:";  /* F15 */
  97.     "\UF713" = "noop:";  /* F16 */
  98.     "\UF714" = "noop:";  /* F17 */
  99.     "\UF715" = "noop:";  /* F18 */
  100.     "\UF716" = "noop:";  /* F19 */
  101.     "\UF717" = "noop:";  /* F20 */
  102.     "\UF718" = "noop:";  /* F21 */
  103.     "\UF719" = "noop:";  /* F22 */
  104.     "\UF71A" = "noop:";  /* F23 */
  105.     "\UF71B" = "noop:";  /* F24 */
  106.     "\UF71C" = "noop:";  /* F25 */
  107.     "\UF71D" = "noop:";  /* F26 */
  108.     "\UF71E" = "noop:";  /* F27 */
  109.     "\UF71F" = "noop:";  /* F28 */
  110.     "\UF720" = "noop:";  /* F29 */
  111.     "\UF721" = "noop:";  /* F30 */
  112.     "\UF722" = "noop:";  /* F31 */
  113.     "\UF723" = "noop:";  /* F32 */
  114.     "\UF724" = "noop:";  /* F33 */
  115.     "\UF725" = "noop:";  /* F34 */
  116.     "\UF726" = "noop:";  /* F35 */
  117.     "\UF727" = "noop:";  /* Insert */
  118.     "\UF72A" = "noop:";  /* Begin */
  119.     "\UF72E" = "noop:";  /* Print Screen */
  120.     "\UF72F" = "noop:";  /* Scroll Lock */
  121.     "\UF730" = "noop:";  /* Pause */
  122.     "\UF731" = "noop:";  /* Sys Req */
  123.     "\UF732" = "noop:";  /* Break */
  124.     "\UF733" = "noop:";  /* Reset */
  125.     "\UF734" = "noop:";  /* Stop */
  126.     "\UF735" = "noop:";  /* Menu */
  127.     "\UF736" = "noop:";  /* User */
  128.     "\UF737" = "noop:";  /* System */
  129.     "\UF738" = "noop:";  /* Print */
  130.     "\UF73A" = "noop:";  /* Clear Display */
  131.     "\UF73B" = "noop:";  /* Insert Line */
  132.     "\UF73C" = "noop:";  /* Delete Line */
  133.     "\UF73D" = "noop:";  /* Insert Char */
  134.     "\UF73E" = "noop:";  /* Delete Char */
  135.     "\UF73F" = "noop:";  /* Prev */
  136.     "\UF740" = "noop:";  /* Next */
  137.     "\UF741" = "noop:";  /* Select */
  138.     "\UF742" = "noop:";  /* Execute */
  139.     "\UF743" = "noop:";  /* Undo */
  140.     "\UF744" = "noop:";  /* Redo */
  141.     "\UF745" = "noop:";  /* Find */
  142.     "\UF746" = "noop:";  /* Help */
  143.     "\UF747" = "noop:";  /* Mode Switch */
  144.  
  145. }
  146.