10

It's normal to use Home/End to move cursor to beginning/end of line when typing.

But, recently this two key on my Chrome/Safari will trigger browser scrolling top/bottom when typing in input field/text area.

It will scroll first, and if I press Home/End again it will trigger the "move cursor"

How to fix this?

2
  • 'Normal' where? That sounds more like Windows behaviour to me. Mac behaviour scrolls the screen but doesn't move the cursor. Cmd/arrow moves the cursor.
    – Tetsujin
    Commented Aug 29, 2021 at 7:48
  • This is a real pain for me too. MBP 2021/Ventura - just migrated from Monterey where it did not happen. github, Notion, even google, have become considerably harder to use without home/end.
    – Robino
    Commented Jul 14, 2023 at 14:42

2 Answers 2

5

Issue solved:

0

If you are already using hammerspoon, just tack this onto the end of your init.lua:

hs.hotkey.bind({}, "home", 
    function()
        hs.eventtap.keyStroke({"cmd"}, "left")
    end
)
hs.hotkey.bind({}, "end", 
    function()
        hs.eventtap.keyStroke({"cmd"}, "right")
    end
)
1
  • More info here, if you really want to turbo charge your OSX XP: hammerspoon.org
    – Robino
    Commented Jul 14, 2023 at 16:04

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .