News for hackers. Stuff that matters.
Re:Elevator.js – A “back to top” button that behaves like a ... by jasonkester on Wednesday June 24, 2020 @04:16AM (#23625460)
It still amazes me that people tolerate that as a substitute.

It's a key combo that requires two hands, for what on a regular keyboard is one finger.

Perhaps Mac people never hold a cup of coffee in their hand while using a computer?

Re:Elevator.js – A “back to top” button that behaves like a ... by OOPMan on Wednesday June 24, 2020 @09:32AM (#23627661)
Well, no.

Mac people expect their Butler to carefully hold the coffee cup for them and tilt it so they can take a sip.

Re:Elevator.js – A “back to top” button that behaves like a ... by IggleSniggle on Wednesday June 24, 2020 @10:32AM (#23628298)
My butler chortled
Re:Elevator.js – A “back to top” button that behaves like a ... by smichel17 on Wednesday June 24, 2020 @07:06AM (#23626527)
On my old Dell xps 14 laptop, the function button was close to the arrow keys, making it very convenient to use one-handed. I actually preferred it to a separate home button, because, in a text box, I often want to jump to the start/end of a line and then move a word or two inward -- do-able using control+arrows. It was almost as good as vim, although of course I had to take my hand off the home row.
Re:Elevator.js – A “back to top” button that behaves like a ... by jagged-chisel on Wednesday June 24, 2020 @07:27AM (#23626641)
Imagine vim editing across all text fields in an OS. Would be glorious.
Re:Elevator.js – A “back to top” button that behaves like a ... by evilduck on Wednesday June 24, 2020 @09:26AM (#23627583)
macOS has a lot of baked in emacs keybindings that work almost universally in text fields.

Control-A: Move to the beginning of the line or paragraph.

Control-E: Move to the end of a line or paragraph.

Control-F: Move one character forward.

Control-B: Move one character backward.

Control-L: Center the cursor or selection in the visible area.

Control-P: Move up one line.

Control-N: Move down one line.

Control-O: Insert a new line after the insertion point.

Control-T: Swap the character behind the insertion point with the character in front of the insertion point.

Re:Elevator.js – A “back to top” button that behaves like a ... by jen20 on Wednesday June 24, 2020 @11:07AM (#23628686)
"Almost universally" even includes Electron apps, surprisingly!
Re:Elevator.js – A “back to top” button that behaves like a ... by aglionby on Wednesday June 24, 2020 @07:13AM (#23626563)
Home and end are most useful for me when I'm writing or programming, so both of my hands are on the keyboard anyway. I think I actually find these key combos more useful than a dedicated home or end button, as I'd have to move my hands a lot further for those.
Re:Elevator.js – A “back to top” button that behaves like a ... by Wowfunhappy on Wednesday June 24, 2020 @09:51AM (#23627851)
> Perhaps Mac people never hold a cup of coffee in their hand while using a computer?

I mean, not while using the keyboard, no. Typing is a two-handed activity.

Re:Elevator.js – A “back to top” button that behaves like a ... by sildur on Wednesday June 24, 2020 @04:45AM (#23625667)
They don’t. A Starbucks cup is too heavy to hold it for a long period of time.
Re:Elevator.js – A “back to top” button that behaves like a ... by andy_ppp on Wednesday June 24, 2020 @06:27AM (#23626291)
I'm tired just thinking about this.
Re:Elevator.js – A “back to top” button that behaves like a ... by salttrail on Wednesday June 24, 2020 @04:20AM (#23625482)
right cmd + up arrow and you end up with free cofee-hand
Re:Elevator.js – A “back to top” button that behaves like a ... by httpsterio on Wednesday June 24, 2020 @06:08AM (#23626165)
it dorsnt work with cmd
Re:Elevator.js – A “back to top” button that behaves like a ... by Veen on Wednesday June 24, 2020 @06:31AM (#23626313)
It does for me. I've always used ⌘+up and ⌘+down to go to the top and bottom of the page. After eight years of using Macs, I didn't even know you could use the function key as suggested above.
Re:Elevator.js – A “back to top” button that behaves like a ... by qmmmur on Wednesday June 24, 2020 @09:07AM (#23627400)
Personally, I don't get caught up on pressing two buttons on my keyboard at the same time in the circumstance I'm literally doing something else.
Re:Elevator.js – A “back to top” button that behaves like a ... by yolomcsuperswag on Wednesday June 24, 2020 @06:33AM (#23626321)
Accelerated scrolling makes the home key superfluous. Just scroll "fast".
Re:Elevator.js – A “back to top” button that behaves like a ... by easygenes on Wednesday June 24, 2020 @06:43AM (#23626386)
Yeah, unless the doc is dozens+ pages long. Say, a book on a single page. Then it’s real nice to have a key sequence to get around. Going to the start or end of a long document is an infrequent enough operation I think a two hand sequence is fine.
Re:Elevator.js – A “back to top” button that behaves like a ... by raxxorrax on Wednesday June 24, 2020 @07:11AM (#23626555)
I use both home and end constantly while coding. Writing text not so much, but it still does happen. Sure, you could do without, but...
Re:Elevator.js – A “back to top” button that behaves like a ... by Gracana on Wednesday June 24, 2020 @09:31AM (#23627655)
On a mac you'd use Control-A and Control-E to navigate to the beginning and end of a line. IIRC Home and End navigate the document, not the line.

https://support.apple.com/en-ca/HT201236

Re:Elevator.js – A “back to top” button that behaves like a ... by raxxorrax on Wednesday June 24, 2020 @10:04AM (#23627984)
Hm, that would indeed be an alternative. I never tried hooking up a (windows-) keyboard to a mac, but don't see why it shouldn't work. Question is if the software or editors support the key layout.