You are currently viewing 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,

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 such as Industrial Automation, Home Automation, Operating Systems, High Energy Particle Physics, Embedded Systems, Online Video Advertising, Messaging, K-12 education and Private Banking. He also founded Gungroo Software. He books '#ProMa: Product Management Tools, Methods & Some Off-the-wall Ideas' and 'The Neutrinos Are Coming and Other Stories' are available globally. He also manages, an Indian Sci-fi portal.