Last active
August 16, 2019 18:56
-
-
Save coliver/9c7b7f6e643662c3c267bad475f399f8 to your computer and use it in GitHub Desktop.
Fix HOME and END keys on Mac. Ripped from: https://www.maketecheasier.com/fix-home-end-button-for-external-keyboard-mac/
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
/* This file goes in ~/Library/KeyBindings */ | |
{ | |
/* Remap Home / End keys */ | |
/* Home Button*/ | |
"\UF729" = "moveToBeginningOfLine:"; | |
/* End Button */ | |
"\UF72B" = "moveToEndOfLine:"; | |
/* Shift + Home Button */ | |
"$\UF729" = "moveToBeginningOfLineAndModifySelection:"; | |
/* Shift + End Button */ | |
"$\UF72B" = "moveToEndOfLineAndModifySelection:"; | |
/* Ctrl + Home Button */ | |
"^\UF729" = "moveToBeginningOfDocument:"; | |
/* Ctrl + End Button */ | |
"^\UF72B" = "moveToEndOfDocument:"; | |
/* Shift + Ctrl + Home Button */ | |
"$^\UF729" = "moveToBeginningOfDocumentAndModifySelection:"; | |
/* Shift + Ctrl + End Button*/ | |
"$^\UF72B" = "moveToEndOfDocumentAndModifySelection:"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note: You will need to reboot after making this file to see the changes.