Jump to content
8 posts in this topic

Recommended Posts

Alright, after much scouring the net, I have found the holy grail for key mapping, or key binding as its called in osx.

 

http://www.lsmason.com/articles/macosxkeybindings.html

 

Go to the link and follow the instructions, further down the page there is an example for mapping some of the keys normally used in windows, i'm gonna start working on some more, the ones that are there work awesome, lemme know if you come up with any new bindings.

 

I just noticed that some applications can take precedence over the binding you make, i.e. I noticed in firefox some of the bindings dont work.

Link to comment
https://www.insanelymac.com/forum/topic/35437-key-mapping/
Share on other sites

{
"^\010"	= "deleteWordBackward:";
"\UF729"   = "moveToBeginningOfLine:";
"^\UF729"  = "moveToBeginningOfDocument:";
"$\UF729"  = "moveToBeginningOfLineAndModifySelection:";
"$^\UF729" = "moveToBeginningOfDocumentAndModifySelection:";
"\UF72B"   = "moveToEndOfLine:";
"^\UF72B"  = "moveToEndOfDocument:";
"$\UF72B"  = "moveToEndOfLineAndModifySelection:";
"$^\UF72B" = "moveToEndOfDocumentAndModifySelection:";
"^\UF702"  = "moveWordBackward:";
"^\UF703"  = "moveWordForward:";
"$^\UF702" = "moveWordBackwardAndModifySelection:";
"$^\UF703" = "moveWordForwardAndModifySelection:";
"\UF72C"   = "pageUp:";
"\UF72D"   = "pageDown:";
"^z"	   = "undo:";
"$\UF728"  = "cut:";
"$\UF746"  = "paste:";
"^\UF746"  = "copy:";
"$\UF729"  = ("setMark:","moveToBeginningOfLine:","selectToMark:");
"$\UF72B"  = ("setMark:","moveToEndOfLine:","selectToMark:");
}

Link to comment
https://www.insanelymac.com/forum/topic/35437-key-mapping/#findComment-252980
Share on other sites

Looks good except for one thing that I don't think should break it, but might.

 

The last two lines define keys that you already defined near the top of the list.

 

"$\UF729"  = "moveToBeginningOfLineAndModifySelection:";
"$\UF729"  = ("setMark:","moveToBeginningOfLine:","selectToMark:");

"$\UF72B"  = "moveToEndOfLineAndModifySelection:";
"$\UF72B"  = ("setMark:","moveToEndOfLine:","selectToMark:");

I would think that the first definition would be replaced by the second and it would work.

Link to comment
https://www.insanelymac.com/forum/topic/35437-key-mapping/#findComment-252993
Share on other sites

  • 1 month later...

Hi all,

 

same problem here.

I've created ~/Library/KeyBindings/DefaultKeyBinding.dict and the content is just the replacement of two keys for testing purpose.

{

"\UF729" = "moveToBeginningOfLine:"; /* Home = Start of line */

"\UF72B" = "moveToEndOfLine:"; /* End = End of line */

}

 

What's wrong?? Can someone help me out here??

 

Thx alot,

matthaeus

Link to comment
https://www.insanelymac.com/forum/topic/35437-key-mapping/#findComment-280787
Share on other sites

×
×
  • Create New...