adaminc Posted December 10, 2006 Share Posted December 10, 2006 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 More sharing options...
Xopek Posted December 10, 2006 Share Posted December 10, 2006 I don't have /Library/KeyBindings folder ;-( I create it and a DefaultKeyBinding.dict file in it, but keybinding still doen't work :-(. Link to comment https://www.insanelymac.com/forum/topic/35437-key-mapping/#findComment-252480 Share on other sites More sharing options...
Rammjet Posted December 11, 2006 Share Posted December 11, 2006 ~/Library/KeyBindings folder is in your Home directory. Create the folder and file in the Library folder inside the folder with your user name on it. Link to comment https://www.insanelymac.com/forum/topic/35437-key-mapping/#findComment-252514 Share on other sites More sharing options...
Xopek Posted December 11, 2006 Share Posted December 11, 2006 I've create file DefaultKeyBinding.dict in /Users/myuser/Library/KeyBindings folder, but key binding still don't works. ;-(. Maybe folder name must be KeyBinding? Link to comment https://www.insanelymac.com/forum/topic/35437-key-mapping/#findComment-252937 Share on other sites More sharing options...
Rammjet Posted December 11, 2006 Share Posted December 11, 2006 What is inside the DefaultKeyBinding.dict? Link to comment https://www.insanelymac.com/forum/topic/35437-key-mapping/#findComment-252944 Share on other sites More sharing options...
Xopek Posted December 11, 2006 Share Posted December 11, 2006 { "^\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 More sharing options...
Rammjet Posted December 11, 2006 Share Posted December 11, 2006 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 More sharing options...
mathz Posted January 21, 2007 Share Posted January 21, 2007 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 More sharing options...
Recommended Posts