News for hackers. Stuff that matters.
Re:Elevator.js – A “back to top” button that behaves like a ... by supermatt on Wednesday June 24, 2020 @02:28AM (#23624748)
Cant tell if this is sarcasm or not, but "Home" key does this...
Re:Elevator.js – A “back to top” button that behaves like a ... by jspash on Wednesday June 24, 2020 @03:44AM (#23625225)
The Home key is fine if you're on a PC. On a Mac the only time you'll see one is on some extended external keyboards. It's rare, if nonexistent on Mac laptops.

So you need to press Cmd+Up. Yes, it's two keys instead of one but I would argue it's actually quicker since they are both usually located on the bottom row, meaning there is less distance for your hand to travel.

Re:Elevator.js – A “back to top” button that behaves like a ... by eyelidlessness on Wednesday June 24, 2020 @10:33AM (#23628299)
Cmd + Up is similar in behavior to the macOS Home key behavior, but slightly different. On laptops (or any desktop keyboard with a Fn key), Home is Fn + Up. The differences are:

- Home (and Fn + Up) don't move your caret if you're in an editing context, except...

- Some apps have different behavior for Home than go-to-top. Typically these exceptions use the Windows behavior of go-to-start-of-line (obviously this does move your cursor).

Re:Elevator.js – A “back to top” button that behaves like a ... by itskwanyall on Wednesday June 24, 2020 @04:10AM (#23625426)
I’m normally a macOS guy but I’m currently using windows full time to give WSL a proper chance. The thing I miss most is CMD+Arrow to go to the start/end of something. I think it’s a beautiful system, alt+arrow to jump a word, cmd+arrow to jump to the start/end. The home/end keys are always so hard to find especially when they could be anywhere depending on your keyboard
Re:Elevator.js – A “back to top” button that behaves like a ... by innocenat on Wednesday June 24, 2020 @05:26AM (#23625886)
Alt+Arrow on OSX is Ctrl+Arrow on Windows.

I just switched to OS X recently and I am definitely having the reverse trouble getting used to the Cmd/Alt+Arrow I almost never have problem finding Home/End on any keyboards (been using Windows/Linux for 15+ years). Nowadays for laptop it's almost always fn+Arrow for Home/End.

Re:Elevator.js – A “back to top” button that behaves like a ... by itskwanyall on Wednesday June 24, 2020 @09:42PM (#23635969)
Once you get into mechanical keyboards, there are many custom layouts for anything outside the typewriter keys ;)
Re:Elevator.js – A “back to top” button that behaves like a ... by innocenat on Wednesday June 24, 2020 @10:24PM (#23636244)
How many percentage are there? I am not from English speaking countries, and I have never met anyone using non-standard layout before. So, like, do I need to care if I am not targeting software developer?
Re:Elevator.js – A “back to top” button that behaves like a ... by deadbunny on Wednesday June 24, 2020 @04:41AM (#23625644)
I'm not a Mac user so I may be missing something but can't you do that with Ctrl+left/right?
Re:Elevator.js – A “back to top” button that behaves like a ... by itskwanyall on Wednesday June 24, 2020 @09:38PM (#23635950)
Ctrl+left/right is equivalent to alt+left/right on mac, which jumps to the start/end of the word rather than the start/end of the line
Re:Elevator.js – A “back to top” button that behaves like a ... by Phrodo_00 on Wednesday June 24, 2020 @10:02AM (#23627966)
> On a Mac the only time you'll see one is on some extended external keyboards. It's rare, if nonexistent on Mac laptops.

What do you mean some keyboards? Any PC keyboard you connect to the mac will support home, end, page up, etc. (Unlike buttons 4 and up on mice)

Re:Elevator.js – A “back to top” button that behaves like a ... by Tiksi on Wednesday June 24, 2020 @04:50PM (#23633719)
The mouse button thing drove me mad at first, but https://sensible-side-buttons.archagon.net/ can fix it and give you the expected functionality.
Re:Elevator.js – A “back to top” button that behaves like a ... by lolftw on Wednesday June 24, 2020 @03:47AM (#23625238)
Or shift+space if you want to take steps until the top (maybe you just want to navigate up faster, and not to the top)
Re:Elevator.js – A “back to top” button that behaves like a ... by warp on Wednesday June 24, 2020 @08:20AM (#23627024)
Wow, thanks!

I use space all the time to scroll down on a web page, didn't know you could reverse direction, awesome :)