Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
macOS key mapping for PC keyboard navigation
{
/*
~/Library/KeyBindings/DefaultKeyBinding.dict
*/
// Home/End Keys
"\UF729" = "moveToBeginningOfLine:"; // Home
"\UF72B" = "moveToEndOfLine:"; // End
"$\UF729" = "moveToBeginningOfLineAndModifySelection:"; // Shift + Home
"$\UF72B" = "moveToEndOfLineAndModifySelection:"; // Shift + End
"^\UF729" = "moveToBeginningOfDocument:"; // Ctrl + Home
"^\UF72B" = "moveToEndOfDocument:"; // Ctrl + End
"^$\UF729" = "moveToBeginningOfDocumentAndModifySelection:"; // Ctrl + Shift + Home
"^$\UF72B" = "moveToEndOfDocumentAndModifySelection:"; // Ctrl + Shift + End
// Arrow Keys
"^\UF702" = "moveWordBackward:"; // Ctrl + <-
"^$\UF702" = "moveWordBackwardAndModifySelection:"; // Ctrl + Shift + <-
"^\UF703" = "moveWordForward:"; // Ctrl + ->
"^$\UF703" = "moveWordForwardAndModifySelection:"; // Ctrl + Shift + ->
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment