News for hackers. Stuff that matters.
Re:Elevator.js – A “back to top” button that behaves like a ... by wojcikstefan on Wednesday June 24, 2020 @03:55AM (#23625307)
Plenty of Mac users out there without a “Home” button.
Re:Elevator.js – A “back to top” button that behaves like a ... by FractalParadigm on Wednesday June 24, 2020 @04:03AM (#23625371)
If I'm not mistaken, Fn + Left Arrow is Home on a Mac. Similar to Fn + up/down is Page Up/Down, and IIRC Fn + Right is End.
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.
Re:Elevator.js – A “back to top” button that behaves like a ... by crooked-v on Wednesday June 24, 2020 @04:18AM (#23625471)
And, of course, you can always mess with key bindings for a user by creating a file at ~/Library/KeyBindings/DefaultKeyBinding.dict with custom overrides for whatever.
Re:Elevator.js – A “back to top” button that behaves like a ... by Angostura on Wednesday June 24, 2020 @04:38AM (#23625613)
CMD - up-arrow takes you to top of page.
Re:Elevator.js – A “back to top” button that behaves like a ... by tom_ on Wednesday June 24, 2020 @09:01AM (#23627342)
On OS X, this also moves the insertion point, which Home doesn't.
Re:Elevator.js – A “back to top” button that behaves like a ... by andreshb on Wednesday June 24, 2020 @08:17AM (#23627001)
Been a Mac user for 17 years, never knew that. Thank you.
Re:Elevator.js – A “back to top” button that behaves like a ... by Aeolun on Wednesday June 24, 2020 @08:24AM (#23627050)
I cannot imagine how painful those years must have been.

The moment I learned my macbook didn’t have a home button I was searching for how to emulate that.

Re:Elevator.js – A “back to top” button that behaves like a ... by st1ck on Wednesday June 24, 2020 @05:34AM (#23625934)
I have Home & End on my keyboard, but they are not very conveniently located. Mapping <Super>-A and <Super>-E to Home and End is much more ergonomic (or you can use other modifier like <Ctrl> or <Alt>). Not sure though which keys should be mapped to PageUp/PageDown. Those are not terribly useful keys anyway if you use touchpad or Space.
Re:Elevator.js – A “back to top” button that behaves like a ... by AnonC on Wednesday June 24, 2020 @09:08AM (#23627411)
Also, use Up Arrow to go to the beginning of the line and Down Arrow to go to the end of the line on single line text boxes (I use it often on browser address bars).
Re:Elevator.js – A “back to top” button that behaves like a ... by read_if_gay_ on Wednesday June 24, 2020 @09:17AM (#23627478)
Also, system-wide in basically any text field, cmd+left/right does the same, and alt+left/right moves the cursor to the previous/next word.
Re:Elevator.js – A “back to top” button that behaves like a ... by reaperducer on Wednesday June 24, 2020 @11:19AM (#23628865)
My work Apple keyboard has a home button. It's right there between Function and Page Up. https://www.apple.com/shop/product/MQ052LL/A/magic-keyboard-...

My home Apple keyboard has the Home button between Help and Page Up. Though, I will admit that keyboard is 2003ish. But I keep using it because it still has good action.

Re:Elevator.js – A “back to top” button that behaves like a ... by drewzero1 on Wednesday June 24, 2020 @11:41AM (#23629234)
Is that one of the A1048 [1] "crumb tray" keyboards with the clear rim around the edge? I recently switched to one of those from an original iMac keyboard (finally got fed up with not having a forward delete key) and the key edges and the action both feel crisper. Could just be that I've been using the other one for a decade or so though.

[1]:https://en.wikipedia.org/wiki/Apple_Keyboard#Apple_Keyboard_...

Re:Elevator.js – A “back to top” button that behaves like a ... by reaperducer on Wednesday June 24, 2020 @11:55AM (#23629448)
Almost. It's the Apple Pro Keyboard (M7803)

https://en.wikipedia.org/wiki/File:Apple_Pro_Keyboard_black....

I have to get a USB⇄USB-C dongle so I can use it on my Windows machine.

Re:Elevator.js – A “back to top” button that behaves like a ... by drewzero1 on Wednesday June 24, 2020 @03:04PM (#23632409)
Ooh, I need to get my hands on one of those. The best of both worlds!
Re:Elevator.js – A “back to top” button that behaves like a ... by simonklitj on Wednesday June 24, 2020 @06:42AM (#23626376)
Also, CMD + Arrow Up scrolls to top.
Re:Elevator.js – A “back to top” button that behaves like a ... by dwighttk on Wednesday June 24, 2020 @08:04AM (#23626904)
I have an Apple keyboard with a home key and I never use it.
Re:Elevator.js – A “back to top” button that behaves like a ... by jakear on Wednesday June 24, 2020 @04:01AM (#23625363)
Fn+LeftArrow. RightArrow for End.
Re:Elevator.js – A “back to top” button that behaves like a ... by chefandy on Wednesday June 24, 2020 @07:49AM (#23626788)
And phone users