Skip to content

Commit

Permalink
macos: bindings use cmd due to remap
Browse files Browse the repository at this point in the history
  • Loading branch information
chadsr committed Jan 6, 2025
1 parent ee51241 commit a0fd229
Showing 1 changed file with 30 additions and 4 deletions.
34 changes: 30 additions & 4 deletions macos/Library/KeyBindings/DefaultKeyBinding.dict
Original file line number Diff line number Diff line change
@@ -1,6 +1,32 @@
Key Modifiers
^ : Ctrl
$ : Shift
~ : Option (Alt)
@ : Command (Apple)
# : Numeric Keypad

Non-Printable Key Codes

Standard
Up Arrow: \UF700 Backspace: \U0008 F1: \UF704
Down Arrow: \UF701 Tab: \U0009 F2: \UF705
Left Arrow: \UF702 Escape: \U001B F3: \UF706
Right Arrow: \UF703 Enter: \U000A ...
Insert: \UF727 Page Up: \UF72C
Delete: \UF728 Page Down: \UF72D
Home: \UF729 Print Screen: \UF72E
End: \UF72B Scroll Lock: \UF72F
Break: \UF732 Pause: \UF730
SysReq: \UF731 Menu: \UF735
Help: \UF746

OS X
delete: \U007F

/* Ctrl/Cmd are switched */
{
"^\UF702" = moveWordLeft:;
"^\UF703" = moveWordRight:;
"^$\UF702" = moveWordLeftAndModifySelection:;
"^$\UF703" = moveWordRightAndModifySelection:;
"@\UF702" = moveWordBackward:; /* Ctrl + LeftArrow */
"@\UF703" = moveWordForward:; /* Ctrl + RightArrow */
"@$\UF702" = moveWordBackwardAndModifySelection:; /* Ctrl + Shift + LeftArrow */
"@$\UF703" = moveWordForwardAndModifySelection:; /* Ctrl + Shift + RightArrow */
}

0 comments on commit a0fd229

Please sign in to comment.