Contribute
Register

Problem with keyboard shorcuts

Status
Not open for further replies.
Joined
Oct 7, 2012
Messages
10
Motherboard
ASUS
CPU
Intel Core i7-2630QM
Graphics
nVidia GT 520M 1 GB GDDR3
Mac
  1. 0
Classic Mac
  1. 0
Mobile Phone
  1. Android
Hello friends! I'm a software developer who have always worked with windows and linux OSs. Recently, I've build a hackintosh successfully but I've found a little (not so little to me) problem.

When you work with windows or with linux, you can go to the end or beginning of a new word by pressing control + left or right arrow, and you can do things like copy and paste using control key too.

In mac, you can copy paste just as in windows or linux, but using command key instead of control key, but if you press command + right or left arrow, you go to the end or the beginning of a line, not to the end or the beginning of the next word. In mac, you can go to the next word by pressing option+left or right arrow..

As I mainly use to work with windows and linux, i don't want to change my way of work and i'd like to make my mac go to the next word by pressing command+left or right arrow, instead of option+left or right arrow. Is there any way to change that?

I'll really appreciate your help!! thank you very much for your help!!
 
Ok, i've been investigating and finally (after several months), i've just find a solution.. First of all I have to say that i use a regular "not mac" logitech keyboard, and everything is set by default except this:

First of all we have to create a file named "DefaultKeyBinding.dict" in Users/[user]/Library/KeyBindings (if folder doesn't exist, we must create it).
Then we have to edit that defaultkeybinding file with textedit and paste this:

{
/* home */
"\UF729" = "moveToBeginningOfLine:";
"$\UF729" = "moveToBeginningOfLineAndModifySelection:";


/* end */
"\UF72B" = "moveToEndOfLine:";
"$\UF72B" = "moveToEndOfLineAndModifySelection:";


/* page up/down */
"\UF72C" = "pageUp:";
"\UF72D" = "pageDown:";

/* mover hacia atras o alante palabra a palabra con ctrl */
/* move backward or forward word to word with ctrl*/
"@\Uf702" = "moveWordLeft:";
"@\Uf703" = "moveWordRight:";
"@$\Uf702" = "moveWordLeftAndModifySelection:";
"@$\Uf703" = "moveWordRightAndModifySelection:";
"@\Uf728" = "deleteWordForward:";
"@\U007f" = "deleteWordBackward:";
}

Then we save changes and close textedit.

After doing that, we must close every program we want this to take effect.

Another useful change is to change is to set modification keys like this:

Captura de pantalla 2014-10-22 a las 0.25.09.png



Enjoy!!
 
Status
Not open for further replies.
Back
Top