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

  1. /* StandardKeyBindings.dict - OPENSTEP for Windows 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.         IMPORTANT WINDOWS NOTE:  On windows the keys labeled "Ctrl", by default, 
  17.             generate NSCommandKeyMask, not NSControlKeyMask.  By default, there is no 
  18.             way to generate NSControlKeyMask on Windows.  See the Text System Defaults 
  19.             and KeyBindings release note for details on how to remap your modifier keys.  
  20.             The really important part, though, is to realize that, below, when you see a 
  21.             binding like "^a", it does not mean the Ctrl key.  By default there is no way 
  22.             to invoke this binding.  You may also notice that there are bindings like 
  23.             "@\UF702" (\UF702 is the OpenStep-defined unicode for left arrow).  
  24.             This binding says that NSCommandKeyMask+Left arrow does a moveWordBackward:.  
  25.             This is what be invoked when you type Ctrl+Left arrow (assuming you have 
  26.             default modifier key mappings).
  27.             
  28. */
  29.  
  30. {
  31.     /* All otherwise unbound control and alt and command characters are no-ops */
  32.     "^" = "noop:";
  33.     "~" = "noop:";
  34.     "@" = "noop:";
  35.     
  36.     /* Keyboard UI related bindings */
  37.     /* 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'. */
  38.     "\015" = "insertNewline:";  /* carriage return */
  39.     "\012" = "insertNewline:";  /* new line */
  40.     "\003" = "insertNewline:";  /* enter (!) */
  41.     "\011" = "insertTab:";  /* tab */
  42.     "\031" = "insertBacktab:";  /* backtab (!) */
  43.     
  44.     "^\015" = "insertNewlineIgnoringFieldEditor:";  /* ctrl-carriage return */
  45.     "^\012" = "insertNewlineIgnoringFieldEditor:";  /* alt-new line */
  46.     "^\003" = "insertNewlineIgnoringFieldEditor:";  /* alt-enter (!) */
  47.     "^\011" = "insertTabIgnoringFieldEditor:";  /* ctrl-tab */
  48.  
  49.     "\033" = "cancel:";  /* escape */
  50.     
  51.     /* Emacs bindings */
  52.     "^f" = "moveForward:";  /* logical */
  53.     "^b" = "moveBackward:";  /* logical */
  54.     "^p" = "moveUp:";
  55.     "^n" = "moveDown:";
  56.     "~f" = "moveWordForward:";
  57.     "~b" = "moveWordBackward:";
  58.     "^a" = "moveToBeginningOfParagraph:";
  59.     "^e" = "moveToEndOfParagraph:";
  60.  
  61.     "^l" = "centerSelectionInVisibleArea:";
  62.     "~<" = "moveToBeginningOfDocument:";
  63.     "~>" = "moveToEndOfDocument:";
  64.     "^v" = "pageDown:";
  65.     "~v" = "pageUp:";
  66.  
  67.     "^d" = "deleteForward:";
  68.     "^h" = "deleteBackward:";
  69.     "\010" = "deleteBackward:";  /* backspace */
  70.     "\177" = "deleteBackward:";  /* delete */
  71.     "^k" = "deleteToEndOfParagraph:";
  72.     "^y" = "yank:";
  73.     "~d" = "deleteWordForward:";
  74.     "~^h" = "deleteWordBackward:";
  75.     "~\010" = "deleteWordBackward:";  /* alt-backspace */
  76.     "~\177" = "deleteWordBackward:";  /* alt-delete */
  77.  
  78.     "^t" = "transpose:";
  79.     "^o" = ("insertNewlineIgnoringFieldEditor:", "moveBackward:");
  80.  
  81.     /* Arrow keys with all kinds of modifiers */
  82.     "\UF702" = "moveLeft:"; /* physical, left arrow key */
  83.     "\UF703" = "moveRight:"; /* physical, right arrow key */
  84.     "\UF700" = "moveUp:"; /* up arrow key */
  85.     "\UF701" = "moveDown:"; /* down arrow key */
  86.  
  87.     "^\UF702" = "moveToBeginningOfLine:";  /* ctrl-left */
  88.     "^\UF703" = "moveToEndOfLine:";  /* ctrl-right */
  89.     "^\UF700" = "pageUp:";  /* ctrl-up */
  90.     "^\UF701" = "pageDown:";  /* ctrl-down */
  91.  
  92.     "@\UF702" = "moveWordBackward:";  /* cmd-left */
  93.     "@\UF703" = "moveWordForward:";  /* cmd-right */
  94.  
  95.     "~\UF702" = "moveWordBackward:";  /* alt-left */
  96.     "~\UF703" = "moveWordForward:";  /* alt-right */
  97.     "~\UF700" = ("moveUp:", "moveWordBackward:");  /* alt-up, not ideal */
  98.     "~\UF701" = ("moveDown:", "moveWordForward:");  /* alt-down, not ideal */
  99.  
  100.     "$\UF702" = "moveBackwardAndModifySelection:";  /* shift-left */
  101.     "$\UF703" = "moveForwardAndModifySelection:";  /* shift-right */
  102.     "$\UF700" = "moveUpAndModifySelection:";  /* shift-up */
  103.     "$\UF701" = "moveDownAndModifySelection:";  /* shift-down */
  104.  
  105.     "~$\UF702" = "moveWordBackwardAndModifySelection:";  /* alt-shift-left */
  106.     "~$\UF703" = "moveWordForwardAndModifySelection:";  /* slt-shift-right */
  107.     "~$\UF700" = ("moveUpAndModifySelection:", "moveWordBackwardAndModifySelection:");  /* alt-shift-up, not ideal */
  108.     "~$\UF701" = ("moveDownAndModifySelection:", "moveWordForwardAndModifySelection:");  /* alt-shift-down, not ideal */
  109.  
  110.     "@$\UF702" = "moveWordBackwardAndModifySelection:";  /* cmd-shift-left */
  111.     "@$\UF703" = "moveWordForwardAndModifySelection:";  /* cmd-shift-right */
  112.  
  113.     "^~\UF700" = ("pageUp:", "moveWordBackward:");  /* ctrl-alt-up, not ideal */
  114.     "^~\UF701" = ("pageDown:", "moveWordForward:");  /* ctrl-alt-down, not ideal */
  115.  
  116.     /* Function keys */
  117.     /* Most function keys are bound to noop:  a few, actually do useful things */
  118.     "\UF728" = "deleteForward:";  /* Delete */
  119.     "\UF729" = "moveToBeginningOfParagraph:";  /* Home */
  120.     "\UF72B" = "moveToEndOfParagraph:";  /* End */
  121.     "@\UF729" = "moveToBeginningOfDocument:";  /* Cmd-Home */
  122.     "@\UF72B" = "moveToEndOfDocument:";  /* Cmd-End */
  123.     "$\UF729" = "moveToBeginningOfParagraphAndModifySelection:";  /* Shift-Home */
  124.     "$\UF72B" = "moveToEndOfParagraphAndModifySelection:";  /* Shift-End */
  125.     "\UF72C" = "pageUp:";  /* Page Up */
  126.     "\UF72D" = "pageDown:";  /* Page Down */
  127.     "\UF739" = ("moveToBeginningOfLine:", "deleteToEndOfLine:");  /* Clear Line */
  128.     "\UF705" = "complete:";  /* F2 */
  129.  
  130.     "\UF704" = "noop:";  /* F1 */
  131.     "\UF706" = "noop:";  /* F3 */
  132.     "\UF707" = "noop:";  /* F4 */
  133.     "\UF708" = "noop:";  /* F5 */
  134.     "\UF709" = "noop:";  /* F6 */
  135.     "\UF70A" = "noop:";  /* F7 */
  136.     "\UF70B" = "noop:";  /* F8 */
  137.     "\UF70C" = "noop:";  /* F9 */
  138.     "\UF70D" = "noop:";  /* F10 */
  139.     "\UF70E" = "noop:";  /* F11 */
  140.     "\UF70F" = "noop:";  /* F12 */
  141.     "\UF710" = "noop:";  /* F13 */
  142.     "\UF711" = "noop:";  /* F14 */
  143.     "\UF712" = "noop:";  /* F15 */
  144.     "\UF713" = "noop:";  /* F16 */
  145.     "\UF714" = "noop:";  /* F17 */
  146.     "\UF715" = "noop:";  /* F18 */
  147.     "\UF716" = "noop:";  /* F19 */
  148.     "\UF717" = "noop:";  /* F20 */
  149.     "\UF718" = "noop:";  /* F21 */
  150.     "\UF719" = "noop:";  /* F22 */
  151.     "\UF71A" = "noop:";  /* F23 */
  152.     "\UF71B" = "noop:";  /* F24 */
  153.     "\UF71C" = "noop:";  /* F25 */
  154.     "\UF71D" = "noop:";  /* F26 */
  155.     "\UF71E" = "noop:";  /* F27 */
  156.     "\UF71F" = "noop:";  /* F28 */
  157.     "\UF720" = "noop:";  /* F29 */
  158.     "\UF721" = "noop:";  /* F30 */
  159.     "\UF722" = "noop:";  /* F31 */
  160.     "\UF723" = "noop:";  /* F32 */
  161.     "\UF724" = "noop:";  /* F33 */
  162.     "\UF725" = "noop:";  /* F34 */
  163.     "\UF726" = "noop:";  /* F35 */
  164.     "\UF727" = "noop:";  /* Insert */
  165.     "\UF72A" = "noop:";  /* Begin */
  166.     "\UF72E" = "noop:";  /* Print Screen */
  167.     "\UF72F" = "noop:";  /* Scroll Lock */
  168.     "\UF730" = "noop:";  /* Pause */
  169.     "\UF731" = "noop:";  /* Sys Req */
  170.     "\UF732" = "noop:";  /* Break */
  171.     "\UF733" = "noop:";  /* Reset */
  172.     "\UF734" = "noop:";  /* Stop */
  173.     "\UF735" = "noop:";  /* Menu */
  174.     "\UF736" = "noop:";  /* User */
  175.     "\UF737" = "noop:";  /* System */
  176.     "\UF738" = "noop:";  /* Print */
  177.     "\UF73A" = "noop:";  /* Clear Display */
  178.     "\UF73B" = "noop:";  /* Insert Line */
  179.     "\UF73C" = "noop:";  /* Delete Line */
  180.     "\UF73D" = "noop:";  /* Insert Char */
  181.     "\UF73E" = "noop:";  /* Delete Char */
  182.     "\UF73F" = "noop:";  /* Prev */
  183.     "\UF740" = "noop:";  /* Next */
  184.     "\UF741" = "noop:";  /* Select */
  185.     "\UF742" = "noop:";  /* Execute */
  186.     "\UF743" = "noop:";  /* Undo */
  187.     "\UF744" = "noop:";  /* Redo */
  188.     "\UF745" = "noop:";  /* Find */
  189.     "\UF746" = "noop:";  /* Help */
  190.     "\UF747" = "noop:";  /* Mode Switch */
  191.  
  192. }
  193.