Home and End Act Like Page Up and Page Down in Chrome

Home and End Act Like Page Up and Page Down in Chrome

I am using a Logitech K120 keyboard with my iMac 21.5 inch Late 2012 running macOS Catalina (10.15.1). While editing WordPress, I started to notice that the Home and the End button act as Page Up and Page Down buttons. I use WordPress to this blog, ddiinnxx.com.

In order to address this irritant, I used KeyBindings. I did not have this file, so I had to create it. Listing out the steps:

$ cd ~/Library/
$  mkdir KeyBindings
$ cd KeyBindings/
$ vi DefaultKeyBinding.dict

I added the following lines toDefaultKeyBinding.dict

$ cat ~/Library/KeyBindings/DefaultKeyBinding.dict 
{
    "\UF729"  = moveToBeginningOfLine:; // Home
    "\UF72B"  = moveToEndOfLine:; // End
    "$\UF729" = moveToBeginningOfLineAndModifySelection:; // Shift+Home
    "$\UF72B" = moveToEndOfLineAndModifySelection:; // Shift+End
}

I had to restart Chrome and it worked fine. How clicking on Home, it takes me to the beginning on the line and clicking on End, it takes me to the end of the line.

Note: I found this article on remapping useful.

 



Dinker Charak

Dinker has over a decade of experience in building products across diverse domains as Industrial Automation, Home Automations, Operating Systems, High Energy Particle Physics, Embedded Systems, Online Video Advertising, Messaging, K-12 education and Private Banking. He also founded Gungroo Software. His books #ProMa, Absolute and None & The Murmurs of the Dawn are available on Amazon.
Close Menu