Skip to content

Instantly share code, notes, and snippets.

@krackers
Forked from zsimic/DefaultKeyBinding.dict
Created November 5, 2023 04:10
Show Gist options
  • Save krackers/14bea1ed61de129d8754dc7971f5c030 to your computer and use it in GitHub Desktop.
Save krackers/14bea1ed61de129d8754dc7971f5c030 to your computer and use it in GitHub Desktop.

Revisions

  1. @zsimic zsimic revised this gist Dec 13, 2020. 1 changed file with 7 additions and 17 deletions.
    24 changes: 7 additions & 17 deletions DefaultKeyBinding.dict
    Original file line number Diff line number Diff line change
    @@ -1,23 +1,13 @@
    {
    /* ~/Library/KeyBindings/DefaultKeyBinding.dict

    See system defaults:

    plutil -convert xml1 /System/Library/Frameworks/AppKit.framework/Resources/StandardKeyBinding.dict -o -|pl|grep -v noop:|ruby -pe'$_.gsub!(/[^ -~\n]/){"\\U%04x"%$&.ord}'

    Useful links:
    - http://www.hcs.harvard.edu/~jrus/site/cocoa-text.html
    - http://xahlee.info/kbd/osx_keybinding.html
    - http://xahlee.info/kbd/osx_keybinding_action_code.html

    Prefix cheatsheet:
    Char Short Key
    $ S- Shift ⇧
    ^ C- CTRL ⌃
    ~ O- Option ⌥ (⊞ Win key position on PC)
    @ M- Command ⌘ (Alt position on PC)
    # Numeric Keypad

    See https://gist.github.com/zsimic/1367779, prefix cheatsheet:
    Char Short Key
    $ S- Shift ⇧
    ^ C- CTRL ⌃
    ~ O- Option ⌥ (⊞ Win key position on PC)
    @ M- Command ⌘ (Alt position on PC)
    # Numeric Keypad
    */

    /*---- Navigation ----*/
  2. @zsimic zsimic revised this gist Dec 13, 2020. 1 changed file with 48 additions and 39 deletions.
    87 changes: 48 additions & 39 deletions DefaultKeyBinding.dict
    Original file line number Diff line number Diff line change
    @@ -1,59 +1,68 @@
    {
    /* ~/Library/KeyBindings/DefaultKeyBinding.dict, see http://www.hcs.harvard.edu/~jrus/site/cocoa-text.html */
    /* ~/Library/KeyBindings/DefaultKeyBinding.dict

    /*---- Navigation ----*/
    See system defaults:

    "^\UF700" = "moveToBeginningOfParagraph:"; /* C-up Move to beginning of paragraph */
    "^\UF701" = "moveToEndOfParagraph:"; /* C-down Move to end of paragraph */
    plutil -convert xml1 /System/Library/Frameworks/AppKit.framework/Resources/StandardKeyBinding.dict -o -|pl|grep -v noop:|ruby -pe'$_.gsub!(/[^ -~\n]/){"\\U%04x"%$&.ord}'

    "^\UF702" = "moveWordLeft:"; /* C-left Move word left */
    "^\UF703" = "moveWordRight:"; /* C-right Move word right */
    Useful links:
    - http://www.hcs.harvard.edu/~jrus/site/cocoa-text.html
    - http://xahlee.info/kbd/osx_keybinding.html
    - http://xahlee.info/kbd/osx_keybinding_action_code.html

    "\UF729" = "moveToBeginningOfLine:"; /* home Beginning of line */
    "\UF72B" = "moveToEndOfLine:"; /* end End of line */
    Prefix cheatsheet:
    Char Short Key
    $ S- Shift ⇧
    ^ C- CTRL ⌃
    ~ O- Option ⌥ (⊞ Win key position on PC)
    @ M- Command ⌘ (Alt position on PC)
    # Numeric Keypad

    "^\UF729" = "moveToBeginningOfDocument:"; /* C-home Beginning of document */
    "^\UF72B" = "moveToEndOfDocument:"; /* C-end End of document */
    */

    "\UF72C" = "pageUp:"; /* page up Page up */
    "\UF72D" = "pageDown:"; /* page dn Page down */
    /*---- Navigation ----*/

    "~\UF72C" = "scrollPageUp:"; /* O-pg up Scroll page up */
    "~\UF72D" = "scrollPageDown:"; /* O-pg dn Scroll page down */
    /* Up/down is mostly for a nicer laptop navigation (no Home, PgUp etc keys) */
    "~\Uf700" = "pageUp:"; /* O-up Page up */
    "~$\Uf700" = "pageUpAndModifySelection:"; /* O-S-up Select + page up */
    "@\Uf700" = "moveToBeginningOfDocument:"; /* M-up Beginning of document */
    "@$\Uf700" = "moveToBeginningOfDocumentAndModifySelection:"; /* M-S-up Select to beginning of document */

    "$^\UF702" = "moveWordLeftAndModifySelection:"; /* C-Shft-left Select word left */
    "$^\UF703" = "moveWordRightAndModifySelection:"; /* C-Shft-right Select word right */
    "~\Uf701" = "pageDown:"; /* O-down Page down */
    "~$\Uf701" = "pageDownpAndModifySelection:"; /* O-S-down Select + page down */
    "@\Uf701" = "moveToEndOfDocument:"; /* M-down End of document */
    "@$\Uf701" = "moveToEndOfDocumentAndModifySelection:"; /* M-S-down Select to end of document */

    "$\UF729" = "moveToBeginningOfLineAndModifySelection"; /* Shft-home Select to beginning of line */
    "$\UF72B" = "moveToEndOfLineAndModifySelection"; /* Shft-end Select to end of line */
    /* Windows defaults are more convenient */
    "^\Uf702" = "moveWordBackward:"; /* C-left Move word left */
    "^$\Uf702" = "moveWordBackwardAndModifySelection:"; /* C-S-left Select word left */

    "^$\UF700" = "moveToBeginningOfParagraphAndModifySelection:"; /* C-Shft-up Select to beginning of paragraph */
    "^$\UF701" = "moveToEndOfParagraphAndModifySelection:"; /* C-Shft-down Select to end of paragraph */
    "^\Uf703" = "moveWordForward:"; /* C-right Move word right */
    "^$\Uf703" = "moveWordForwardAndModifySelection:"; /* C-S-right Select word right */

    "^$\UF729" = "moveToBeginningOfDocumentAndModifySelection:"; /* C-Shft-home Select to beginning of document */
    "^$\UF72B" = "moveToEndOfDocumentAndModifySelection:"; /* C-Shft-end Select to end of document */
    "\Uf729" = "moveToBeginningOfLine:"; /* home Beginning of line */
    "$\Uf729" = "moveToBeginningOfLineAndModifySelection:"; /* S-home Select to beginning of line */
    "^\Uf729" = "moveToBeginningOfDocument:"; /* C-home Beginning of document */
    "^$\Uf729" = "moveToBeginningOfDocumentAndModifySelection:"; /* C-S-home Select to beginning of document */

    /*---- Editing ----*/
    "\Uf72b" = "moveToEndOfLine:"; /* end End of line */
    "$\Uf72b" = "moveToEndOfLineAndModifySelection:"; /* S-end Select to end of line */
    "^\Uf72b" = "moveToEndOfDocument:"; /* C-end End of document */
    "^$\Uf72b" = "moveToEndOfDocumentAndModifySelection:"; /* C-S-end Select to end of document */

    "^\U007F" = "deleteWordBackward:"; /* C-Del Delete word backward */
    "^\UF728" = "deleteWordForward:"; /* C-FwdDel Delete word forward */
    "\Uf72c" = "pageUp:"; /* PageUp Page up */
    "$\Uf72c" = "pageUpAndModifySelection:"; /* S-PageUp Select + page up */
    "@\Uf72c" = "scrollPageUp:"; /* M-PageUp Scroll page up */

    "$\U000A" = "insertLineBreak:"; /* Shft-Ret Line break */
    "\Uf72d" = "pageDown:"; /* PageDn Page down */
    "$\Uf72d" = "pageDownAndModifySelection:"; /* S-PageDn Select + page down */
    "@\Uf72d" = "scrollPageDown:"; /* M-PageDn Scroll page down */

    "^a" = "selectAll:"; /* C-a Select all */
    /*---- Editing ----*/

    "^x" = "cut:"; /* C-x Cut */
    "^c" = "copy:"; /* C-c Copy */
    "^v" = "paste:"; /* C-v Paste */
    "^\U007f" = "deleteWordBackward:"; /* C-Del Delete word backward */
    "^\Uf728" = "deleteWordForward:"; /* C-FwdDel Delete word forward */

    "^z" = "undo:"; /* C-z Undo */
    "^y" = "redo:"; /* C-y Redo */
    "$\U000a" = "insertLineBreak:"; /* S-Ret Line break */

    /*---- Operations ----*/

    "^s" = "save:"; /* C-s Save */
    "^S" = "saveAs:"; /* C-Shft-s Save as */

    "\UF704" = "showContextHelp:"; /* F1 Show help */
    "^\UF707" = "performClose:"; /* C-F4 Close document */
    }
  3. @zsimic zsimic revised this gist Dec 5, 2020. 1 changed file with 37 additions and 38 deletions.
    75 changes: 37 additions & 38 deletions DefaultKeyBinding.dict
    Original file line number Diff line number Diff line change
    @@ -1,60 +1,59 @@
    {
    /* ~/Library/KeyBindings/DefaultKeyBinding.dict, see http://www.hcs.harvard.edu/~jrus/site/cocoa-text.html */
    /* ~/Library/KeyBindings/DefaultKeyBinding.dict, see http://www.hcs.harvard.edu/~jrus/site/cocoa-text.html */

    /*---- Navigation ----*/
    /*---- Navigation ----*/

    "^\UF700" = "moveToBeginningOfParagraph:"; /* C-up Move to beginning of paragraph */
    "^\UF701" = "moveToEndOfParagraph:"; /* C-down Move to end of paragraph */
    "^\UF700" = "moveToBeginningOfParagraph:"; /* C-up Move to beginning of paragraph */
    "^\UF701" = "moveToEndOfParagraph:"; /* C-down Move to end of paragraph */

    "^\UF702" = "moveWordLeft:"; /* C-left Move word left */
    "^\UF703" = "moveWordRight:"; /* C-right Move word right */
    "^\UF702" = "moveWordLeft:"; /* C-left Move word left */
    "^\UF703" = "moveWordRight:"; /* C-right Move word right */

    "\UF729" = "moveToBeginningOfLine:"; /* home Beginning of line */
    "\UF72B" = "moveToEndOfLine:"; /* end End of line */
    "\UF729" = "moveToBeginningOfLine:"; /* home Beginning of line */
    "\UF72B" = "moveToEndOfLine:"; /* end End of line */

    "^\UF729" = "moveToBeginningOfDocument:"; /* C-home Beginning of document */
    "^\UF72B" = "moveToEndOfDocument:"; /* C-end End of document */
    "^\UF729" = "moveToBeginningOfDocument:"; /* C-home Beginning of document */
    "^\UF72B" = "moveToEndOfDocument:"; /* C-end End of document */

    "\UF72C" = "pageUp:"; /* page up Page up */
    "\UF72D" = "pageDown:"; /* page dn Page down */
    "\UF72C" = "pageUp:"; /* page up Page up */
    "\UF72D" = "pageDown:"; /* page dn Page down */

    "~\UF72C" = "scrollPageUp:"; /* O-pg up Scroll page up */
    "~\UF72D" = "scrollPageDown:"; /* O-pg dn Scroll page down */
    "~\UF72C" = "scrollPageUp:"; /* O-pg up Scroll page up */
    "~\UF72D" = "scrollPageDown:"; /* O-pg dn Scroll page down */

    "$^\UF702" = "moveWordLeftAndModifySelection:"; /* C-Shft-left Select word left */
    "$^\UF703" = "moveWordRightAndModifySelection:"; /* C-Shft-right Select word right */
    "$^\UF702" = "moveWordLeftAndModifySelection:"; /* C-Shft-left Select word left */
    "$^\UF703" = "moveWordRightAndModifySelection:"; /* C-Shft-right Select word right */

    "$\UF729" = "moveToBeginningOfLineAndModifySelection"; /* Shft-home Select to beginning of line */
    "$\UF72B" = "moveToEndOfLineAndModifySelection"; /* Shft-end Select to end of line */
    "$\UF729" = "moveToBeginningOfLineAndModifySelection"; /* Shft-home Select to beginning of line */
    "$\UF72B" = "moveToEndOfLineAndModifySelection"; /* Shft-end Select to end of line */

    "^$\UF700" = "moveToBeginningOfParagraphAndModifySelection:"; /* C-Shft-up Select to beginning of paragraph */
    "^$\UF701" = "moveToEndOfParagraphAndModifySelection:"; /* C-Shft-down Select to end of paragraph */
    "^$\UF700" = "moveToBeginningOfParagraphAndModifySelection:"; /* C-Shft-up Select to beginning of paragraph */
    "^$\UF701" = "moveToEndOfParagraphAndModifySelection:"; /* C-Shft-down Select to end of paragraph */

    "^$\UF729" = "moveToBeginningOfDocumentAndModifySelection:"; /* C-Shft-home Select to beginning of document */
    "^$\UF72B" = "moveToEndOfDocumentAndModifySelection:"; /* C-Shft-end Select to end of document */
    "^$\UF729" = "moveToBeginningOfDocumentAndModifySelection:"; /* C-Shft-home Select to beginning of document */
    "^$\UF72B" = "moveToEndOfDocumentAndModifySelection:"; /* C-Shft-end Select to end of document */

    /*---- Editing ----*/
    /*---- Editing ----*/

    "^\U007F" = "deleteWordBackward:"; /* C-Del Delete word backward */
    "^\UF728" = "deleteWordForward:"; /* C-FwdDel Delete word forward */
    "^\U007F" = "deleteWordBackward:"; /* C-Del Delete word backward */
    "^\UF728" = "deleteWordForward:"; /* C-FwdDel Delete word forward */

    "$\U000A" = "insertLineBreak:"; /* Shft-Ret Line break */
    "$\U000A" = "insertLineBreak:"; /* Shft-Ret Line break */

    "^a" = "selectAll:"; /* C-a Select all */
    "^a" = "selectAll:"; /* C-a Select all */

    "^x" = "cut:"; /* C-x Cut */
    "^c" = "copy:"; /* C-c Copy */
    "^v" = "paste:"; /* C-v Paste */
    "^x" = "cut:"; /* C-x Cut */
    "^c" = "copy:"; /* C-c Copy */
    "^v" = "paste:"; /* C-v Paste */

    "^z" = "undo:"; /* C-z Undo */
    "^y" = "redo:"; /* C-y Redo */
    "^z" = "undo:"; /* C-z Undo */
    "^y" = "redo:"; /* C-y Redo */

    /*---- Operations ----*/
    /*---- Operations ----*/

    "^s" = "save:"; /* C-s Save */
    "^S" = "saveAs:"; /* C-Shft-s Save as */

    "\UF704" = "showContextHelp:"; /* F1 Show help */
    "^\UF707" = "performClose:"; /* C-F4 Close document */
    "^s" = "save:"; /* C-s Save */
    "^S" = "saveAs:"; /* C-Shft-s Save as */

    "\UF704" = "showContextHelp:"; /* F1 Show help */
    "^\UF707" = "performClose:"; /* C-F4 Close document */
    }
  4. @zsimic zsimic revised this gist Dec 5, 2020. 1 changed file with 38 additions and 72 deletions.
    110 changes: 38 additions & 72 deletions DefaultKeyBinding.dict
    Original file line number Diff line number Diff line change
    @@ -1,94 +1,60 @@
    //~/Library/KeyBindings/DefaultKeyBinding.dict
    {
    /* Keybindings for partial windows emulation. Compiled by Jacob Rus.
    *
    * Steve Jacobs did much of the work on this.
    *
    * Note that the bindings at the end, for Ctrl-a, Ctrl-n, etc.
    * will override OS X defaults. Remove that section if you like.
    */
    /* ~/Library/KeyBindings/DefaultKeyBinding.dict, see http://www.hcs.harvard.edu/~jrus/site/cocoa-text.html */

    /*---- Navigation ----*/

    /***** HOME-END KEYS *****/
    "^\UF700" = "moveToBeginningOfParagraph:"; /* C-up Move to beginning of paragraph */
    "^\UF701" = "moveToEndOfParagraph:"; /* C-down Move to end of paragraph */

    "\UF729" = "moveToBeginningOfLine:"; /* home Beginning of line */
    "\UF72B" = "moveToEndOfLine:"; /* end End of line */
    "^\UF702" = "moveWordLeft:"; /* C-left Move word left */
    "^\UF703" = "moveWordRight:"; /* C-right Move word right */

    "$\UF729" = "moveToBeginningOfLineAndModifySelection"; /* Shft-home Select to beginning of line */
    "$\UF72B" = "moveToEndOfLineAndModifySelection"; /* Shft-end Select to end of line */
    "\UF729" = "moveToBeginningOfLine:"; /* home Beginning of line */
    "\UF72B" = "moveToEndOfLine:"; /* end End of line */

    "^\UF729" = "moveToBeginningOfDocument:"; /* C-home Beginning of document */
    "^\UF72B" = "moveToEndOfDocument:"; /* C-end End of document */

    "^$\UF729" = "moveToBeginningOfDocumentAndModifySelection:"; /* C-Shft-home Select to beginning of document */
    "^$\UF72B" = "moveToEndOfDocumentAndModifySelection:"; /* C-Shft-end Select to end of document */
    "^\UF729" = "moveToBeginningOfDocument:"; /* C-home Beginning of document */
    "^\UF72B" = "moveToEndOfDocument:"; /* C-end End of document */

    /***** PAGE UP-PAGE DOWN KEYS *****/
    "\UF72C" = "pageUp:"; /* page up Page up */
    "\UF72D" = "pageDown:"; /* page dn Page down */

    "\UF72C" = "pageUp:"; /* page up Page up */
    "\UF72D" = "pageDown:"; /* page dn Page down */

    "~\UF72C" = "scrollPageUp:"; /* O-pg up Scroll page up */
    "~\UF72D" = "scrollPageDown:"; /* O-pg dn Scroll page down */
    "~\UF72C" = "scrollPageUp:"; /* O-pg up Scroll page up */
    "~\UF72D" = "scrollPageDown:"; /* O-pg dn Scroll page down */

    "$^\UF702" = "moveWordLeftAndModifySelection:"; /* C-Shft-left Select word left */
    "$^\UF703" = "moveWordRightAndModifySelection:"; /* C-Shft-right Select word right */

    /***** DELETE-FORWARD DELETE KEYS *****/
    "$\UF729" = "moveToBeginningOfLineAndModifySelection"; /* Shft-home Select to beginning of line */
    "$\UF72B" = "moveToEndOfLineAndModifySelection"; /* Shft-end Select to end of line */

    // "~\U007F" = "undo:"; /* O-Del Undo */
    // "~$\U007F" = "redo:"; /* O-Shft-Del Undo */
    "^$\UF700" = "moveToBeginningOfParagraphAndModifySelection:"; /* C-Shft-up Select to beginning of paragraph */
    "^$\UF701" = "moveToEndOfParagraphAndModifySelection:"; /* C-Shft-down Select to end of paragraph */

    "^\U007F" = "deleteWordBackward:"; /* C-Del Delete word backward */
    "^\UF728" = "deleteWordForward:"; /* C-FwdDel Delete word forward */
    "^$\UF729" = "moveToBeginningOfDocumentAndModifySelection:"; /* C-Shft-home Select to beginning of document */
    "^$\UF72B" = "moveToEndOfDocumentAndModifySelection:"; /* C-Shft-end Select to end of document */

    /*---- Editing ----*/

    /***** DELETE-INSERT(HELP) KEYS *****/
    "^\U007F" = "deleteWordBackward:"; /* C-Del Delete word backward */
    "^\UF728" = "deleteWordForward:"; /* C-FwdDel Delete word forward */

    /* Note that the Windows "insert" key is the Mac "help" key */
    // "$\UF728" = "cut:"; /* Shft-FwdDel Cut */
    // "^\UF746" = "copy:"; /* C-Help Copy */
    // "$\UF746" = "paste:"; /* Shft-Help Paste */
    "$\U000A" = "insertLineBreak:"; /* Shft-Ret Line break */

    "^a" = "selectAll:"; /* C-a Select all */

    /***** RETURN KEY *****/
    "^x" = "cut:"; /* C-x Cut */
    "^c" = "copy:"; /* C-c Copy */
    "^v" = "paste:"; /* C-v Paste */

    // "$\U000A" = "insertLineBreak:"; /* Shft-Ret Line break */
    "^z" = "undo:"; /* C-z Undo */
    "^y" = "redo:"; /* C-y Redo */

    /*---- Operations ----*/

    /***** F KEYS *****/
    "^s" = "save:"; /* C-s Save */
    "^S" = "saveAs:"; /* C-Shft-s Save as */

    // "\UF704" = "showContextHelp:"; /* F1 Show help */

    "^\UF707" = "performClose:"; /* C-F4 Close document */
    "\UF704" = "showContextHelp:"; /* F1 Show help */
    "^\UF707" = "performClose:"; /* C-F4 Close document */

    /***** ARROWS *****/

    "^\UF700" = "moveToBeginningOfParagraph:"; /* C-up Move to beginning of paragraph */
    "^\UF701" = "moveToEndOfParagraph:"; /* C-down Move to end of paragraph */

    "^$\UF700" = "moveToBeginningOfParagraphAndModifySelection:"; /* C-Shft-up Select to beginning of paragraph */
    "^$\UF701" = "moveToEndOfParagraphAndModifySelection:"; /* C-Shft-down Select to end of paragraph */

    "^\UF702" = "moveWordLeft:"; /* C-left Move word left */
    "^\UF703" = "moveWordRight:"; /* C-right Move word right */

    "$^\UF702" = "moveWordBackwardAndModifySelection:";
    /* "$^\UF702" = "moveWordLeftAndModifySelection:"; */ /* C-Shft-left Select word left */
    "$^\UF703" = "moveWordRightAndModifySelection:"; /* C-Shft-right Select word right */


    /***** CTRL + LETTERS *****/

    "^a" = "selectAll:"; /* C-a Select all */

    "^x" = "cut:"; /* C-x Cut */
    "^c" = "copy:"; /* C-c Copy */
    "^v" = "paste:"; /* C-v Paste */

    "^z" = "undo:"; /* C-z Undo */
    "^y" = "redo:"; /* C-y Redo */

    "^s" = "save:"; /* C-s Save */
    "^S" = "saveAs:"; /* C-Shft-s Save as */
    // "^p" = "print:"; /* C-p Print */

    }
    }
  5. @zsimic zsimic created this gist Nov 15, 2011.
    94 changes: 94 additions & 0 deletions DefaultKeyBinding.dict
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,94 @@
    //~/Library/KeyBindings/DefaultKeyBinding.dict
    {
    /* Keybindings for partial windows emulation. Compiled by Jacob Rus.
    *
    * Steve Jacobs did much of the work on this.
    *
    * Note that the bindings at the end, for Ctrl-a, Ctrl-n, etc.
    * will override OS X defaults. Remove that section if you like.
    */


    /***** HOME-END KEYS *****/

    "\UF729" = "moveToBeginningOfLine:"; /* home Beginning of line */
    "\UF72B" = "moveToEndOfLine:"; /* end End of line */

    "$\UF729" = "moveToBeginningOfLineAndModifySelection"; /* Shft-home Select to beginning of line */
    "$\UF72B" = "moveToEndOfLineAndModifySelection"; /* Shft-end Select to end of line */

    "^\UF729" = "moveToBeginningOfDocument:"; /* C-home Beginning of document */
    "^\UF72B" = "moveToEndOfDocument:"; /* C-end End of document */

    "^$\UF729" = "moveToBeginningOfDocumentAndModifySelection:"; /* C-Shft-home Select to beginning of document */
    "^$\UF72B" = "moveToEndOfDocumentAndModifySelection:"; /* C-Shft-end Select to end of document */

    /***** PAGE UP-PAGE DOWN KEYS *****/

    "\UF72C" = "pageUp:"; /* page up Page up */
    "\UF72D" = "pageDown:"; /* page dn Page down */

    "~\UF72C" = "scrollPageUp:"; /* O-pg up Scroll page up */
    "~\UF72D" = "scrollPageDown:"; /* O-pg dn Scroll page down */


    /***** DELETE-FORWARD DELETE KEYS *****/

    // "~\U007F" = "undo:"; /* O-Del Undo */
    // "~$\U007F" = "redo:"; /* O-Shft-Del Undo */

    "^\U007F" = "deleteWordBackward:"; /* C-Del Delete word backward */
    "^\UF728" = "deleteWordForward:"; /* C-FwdDel Delete word forward */


    /***** DELETE-INSERT(HELP) KEYS *****/

    /* Note that the Windows "insert" key is the Mac "help" key */
    // "$\UF728" = "cut:"; /* Shft-FwdDel Cut */
    // "^\UF746" = "copy:"; /* C-Help Copy */
    // "$\UF746" = "paste:"; /* Shft-Help Paste */


    /***** RETURN KEY *****/

    // "$\U000A" = "insertLineBreak:"; /* Shft-Ret Line break */


    /***** F KEYS *****/

    // "\UF704" = "showContextHelp:"; /* F1 Show help */

    "^\UF707" = "performClose:"; /* C-F4 Close document */

    /***** ARROWS *****/

    "^\UF700" = "moveToBeginningOfParagraph:"; /* C-up Move to beginning of paragraph */
    "^\UF701" = "moveToEndOfParagraph:"; /* C-down Move to end of paragraph */

    "^$\UF700" = "moveToBeginningOfParagraphAndModifySelection:"; /* C-Shft-up Select to beginning of paragraph */
    "^$\UF701" = "moveToEndOfParagraphAndModifySelection:"; /* C-Shft-down Select to end of paragraph */

    "^\UF702" = "moveWordLeft:"; /* C-left Move word left */
    "^\UF703" = "moveWordRight:"; /* C-right Move word right */

    "$^\UF702" = "moveWordBackwardAndModifySelection:";
    /* "$^\UF702" = "moveWordLeftAndModifySelection:"; */ /* C-Shft-left Select word left */
    "$^\UF703" = "moveWordRightAndModifySelection:"; /* C-Shft-right Select word right */


    /***** CTRL + LETTERS *****/

    "^a" = "selectAll:"; /* C-a Select all */

    "^x" = "cut:"; /* C-x Cut */
    "^c" = "copy:"; /* C-c Copy */
    "^v" = "paste:"; /* C-v Paste */

    "^z" = "undo:"; /* C-z Undo */
    "^y" = "redo:"; /* C-y Redo */

    "^s" = "save:"; /* C-s Save */
    "^S" = "saveAs:"; /* C-Shft-s Save as */
    // "^p" = "print:"; /* C-p Print */

    }