8

I'm using a Magic Keyboard with both my windows laptop and my Macbook Pro. When on MacOS, the Home and End keys default to Page Up and Page Down.

How do I remap the Home key to act as the Home button (moving the cursor to the beginning of a line) and similarly with the end key, moving the cursor to the end of the line?

bmike
246k80 gold badges442 silver badges1k bronze badges
asked May 7, 2022 at 10:00
0

2 Answers 2

9

Home doesn't move to the beginning of the line in macOS; that's a Windows thing.
On Mac Home is 'scroll to the top', End is 'scroll to the bottom', the cursor doesn't move.

Cmd/left or right arrow moves to the beginning & end of line.

As noted in comments, Microsoft have chosen to change the default behaviour for Word, to be more Windows-like, but this is not Mac-standard.

answered May 7, 2022 at 11:15
6
  • 3
    I have the full Magic Keyboard with Numeric Keypad, and the home & end are right next to page up & page down keys, so there's no point having these keys function the way you've described @Tetsujin. Additionally, I've tested it on macOS Big Sur, and the home & end keys work as the Cmd+left/right shortcut that moves the cursor to the start/end of a line. @Antares2018, I'm not sure what's going on with your Mac, but maybe check your Keyboard and Accessibility settings in System Preferences.app Commented May 9, 2022 at 1:19
  • 2
    UPDATE: Just did some research and it appears home & end keys ONLY FUNCTION in Mac's version of Microsoft Word.app as on Microsoft Windows. They DO NOT FUNCTION the same for other macOS Applications. You'll need to use the Cmd+left/right keyboard shortcut to move the cursor to the start/end of a line FOR ALL OTHER macOS applications Commented May 9, 2022 at 1:34
  • 1
    This answer is not addressing the question, and counter to the Stack Exchange guidelines. Hopefully the 'official answer' tick can be removed from it? That would help everyone looking for the answer. Commented May 18, 2023 at 11:06
  • 2
    @OlegMihailik - Consider it a frame challenge. "Behave like the Home button" depends on your expectation of what that behaviour should be. The OP expected it to behave like Windows. It doesn't. Commented May 18, 2023 at 11:10
  • 1
    Totally, it's very useful as frame challenger — which is why it should not be marked as a correct answer. Commented May 24, 2023 at 10:44
8

You can get the desired behavior by installing keyboard modifications. One way to do this is to use Karabiner-Elements. Install "Home and End" from here.

answered Oct 13, 2022 at 21:02

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.