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?
2 Answers 2
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.
-
3I have the full Magic Keyboard with Numeric Keypad, and the
home&endare right next topage up&page downkeys, 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 thehome&endkeys work as theCmd+left/rightshortcut 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 yourKeyboardandAccessibilitysettings inSystem Preferences.appAVelj– AVelj2022年05月09日 01:19:31 +00:00Commented May 9, 2022 at 1:19 -
2UPDATE: Just did some research and it appears
home&endkeys ONLY FUNCTION in Mac's version ofMicrosoft Word.appas on Microsoft Windows. They DO NOT FUNCTION the same for other macOS Applications. You'll need to use theCmd+left/rightkeyboard shortcut to move the cursor to the start/end of a line FOR ALL OTHER macOS applicationsAVelj– AVelj2022年05月09日 01:34:32 +00:00Commented May 9, 2022 at 1:34 -
1This 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.Oleg Mihailik– Oleg Mihailik2023年05月18日 11:06:53 +00:00Commented 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.Tetsujin– Tetsujin2023年05月18日 11:10:15 +00:00Commented May 18, 2023 at 11:10
-
1Totally, it's very useful as frame challenger — which is why it should not be marked as a correct answer.Oleg Mihailik– Oleg Mihailik2023年05月24日 10:44:37 +00:00Commented May 24, 2023 at 10:44
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.