Map home and end keys to beginning/end of line on macOS

(I’m very surprised I can’t find any information about this; if I’m just not using the right search terms, please direct me to existing questions/help pages.)

I’m using LibreOffice (Writer) on a Mac, and it’s driving me batty that hitting the Home ↖︎ and End ↘︎ keys on my keyboard jumps to the very beginning/end of the entire document, rather than the beginning/end of the line I’m on as they do in pretty much all other text editors.

When I go to ToolsCustomizeKeyboard, the mappings appear to be correct, with Home/End on their own set to jump to begin/end line and Cmd+Home/Cmd+End set to jump to begin/end document, as you’d expect:

Home and end go to line begin and line end

Cmd + home and end go to document begin and document end

But despite this, Home/End on their own do exactly the same thing as Cmd+Home/Cmd+End: jump to the beginning/end of the entire document.

As far as I can tell, I have no settings in my installation of macOS (Catalina, 10.15.4) that would do this; nor do these keys behave this way in Word, InDesign, VSCode, TextEdit or any other text editor I may work in. Only in LibreOffice.

Is there a way to get these keys to work as the shortcut list says they’re supposed to work?

2 Likes

I’m experiencing the same issue, on MacOS 10.12.6. Note that I’m a brand-new LibreOffice user, so my user profile and installation is clean.

I’ve tested with both LibreOffice 6.4.3.2, as well as 6.3.4.2, and it’s the same behavior.

Bringing up the ‘Customize’ option, and checking the shortcuts in the ‘Keyboard’ tab, they appear to be correct. I’ve even tried modifying them, hoping that perhaps something is amiss by default… but that doesn’t work either.

This is a bit maddening, as the product as a whole is simply amazing! And ultimately I’ll adapt if necessary.

Keep up the great work folks, and please help us with this when you can!

Cheers,
-Chris

Update:

The interesting thing is that, while this behavior occurs in LibreOffice Writer, Calc behaves differently: Home goes to the first cell on the current row, while End goes to the last… both of which are just as you’d expect.

Even more confusing, when bringing up the Customize dialog, the Home key is set to “To Document Begin,” while End is set to “To Document End.”

Can anyone help?

This seems to be a bug. I filed it here: 156705 – macOS keybindings for Home/End malfunctioning

It is built into Apple operating system that Home goes to beginning of document, see Windows keys on a Mac keyboard - Apple Support (NZ)

This worked like a charm for me: macos - Remap "Home" and "End" to beginning and end of line - Ask Different