Home/End keys to simulate Windows behavior in different contexts
Going to Mac from Windows is mostly a nice experience for me, but one thing I struggle with massively is keyboard shortcuts. I am a programmer and I use them a lot. I have mapped most of them to my liking using Karabiner, but I can't seem to figure out how to simulate Home/End behavior.
The basic behavior, going to the beginning/end of a line is easy, I just mapped Home/End to Command+Left/Right.
However, the issue is with non-text fields. For example, if I am on a webpage and I don't have a text field focused (just clicked anywhere on the page), I would expect the Home/End keys to scroll all the way to the top/bottom of the page. The problem is that pressing those keys effectively means pressing Cmd+Left/Right and that (in the context of a browser) means "go to the previous/next page". So I need to press Cmd+Up/Down to go up and down the page.
But I want to basically have Home behave as "go to the start/top of the current element, whatever that means - if text field, to the beginning. If long page, dialog, something - to the top". Just like on Windows. How do I achieve that?
Solution 1:
If you use Google Chrome, you can add an Extension called Shortkeys (Custom Keyboard Shortcuts) and set all the custom shortcuts you want.
PS: Just FYI you can press Space
to go down one screen at a time and Shift+Space
to go up from default.