Created
September 13, 2019 16:07
-
-
Save clarkmoody/a57270c21c7ac2bf9e8b32d008146e96 to your computer and use it in GitHub Desktop.
Key bindings for Home & End keys on MacOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
/* | |
Remap Home / End keys for external keyboards | |
Save this file as ~/Library/KeyBindings/DefaultKeyBinding.dict | |
*/ | |
"\UF729" = "moveToBeginningOfLine:"; /* Home Button*/ | |
"\UF72B" = "moveToEndOfLine:"; /* End Button */ | |
"$\UF729" = "moveToBeginningOfLineAndModifySelection:"; /* Shift + Home Button */ | |
"$\UF72B" = "moveToEndOfLineAndModifySelection:"; /* Shift + End Button */ | |
"^\UF729" = "moveToBeginningOfDocument:"; /* Ctrl + Home Button */ | |
"^\UF72B" = "moveToEndOfDocument:"; /* Ctrl + End Button */ | |
"$^\UF729" = "moveToBeginningOfDocumentAndModifySelection:"; /* Shift + Ctrl + Home Button */ | |
"$^\UF72B" = "moveToEndOfDocumentAndModifySelection:"; /* Shift + Ctrl + End Button*/ | |
/* | |
More info here: | |
http://xahlee.info/kbd/osx_keybinding.html | |
http://www.evansweb.info/2005/03/24/mac-os-x-and-home-end-keys/ | |
*/ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment