top | item 5605410

Show HN: Delete with your Macbook Pro's power key

25 points| pkamb | 13 years ago |pkamb.github.io | reply

42 comments

order
[+] MBCook|13 years ago|reply
Given that holding the button still causes the Mac to shutdown... this seems awful dangerous. I could easily see myself holding the button to delete a few lines of text and then * oops *.

As trapexit mentioned, fn+Delete already does this, an can easily be entered without removing your hands from the main keyboard area.

[+] pkamb|13 years ago|reply
I never find myself actually using that shortcut, despite knowing it exists. I end up repositioning the cursor, then backspacing. Whereas the power key is in the same muscle-memory space as my external keyboard's Delete key, which I use all the time.

It is a little dangerous, yeah, but worth it in my opinion for a nice shortcut. At least key repeat is off, so you have no reason to hold down the key.

[+] esusatyo|13 years ago|reply
It might've been a better idea to remap the eject button on CD drive less MacBooks. But it would still be weird, I'd just use fn + delete.
[+] trapexit|13 years ago|reply
Coincidentally, I just discovered today that you can also do a forward-delete on a Mac laptop keyboard by hitting Fn+Delete. Very useful for e.g. sending a ⌘⌦ (Ctrl-Alt-Del) to a VirtualBox VM.
[+] sciurus|13 years ago|reply
I'm typing this on a late 2011 Macbook Pro and I'm confused. Do I have a power key that is different than my power button? The power button seems too far away from the keyboard to be usefully remapped.
[+] bestham|13 years ago|reply
The Macbooks without optical drive have the power button located where your eject key is.
[+] pkamb|13 years ago|reply
On the newer Macbook Air and Retina Macbook Pro models, Eject has been replaced with Power. No optical drive.

(This app does actually work with your power _button_, by the way. I suppose some people might find that useful).

[+] bni|13 years ago|reply
Most confusing things for recent Mac converts:

Not having a forward delete key.

No obvious way to "alt-tab" between an apps windows, even less obvious on international keyboards.

No way to use arrow keys to select the OK and cancel buttons in a dialog.

Some Windows-isms was recently added, such as being able to resize the windows using any border. This must have been to appease converts. Do you think Apple will add any of the above soon?

[+] ggreer|13 years ago|reply
Not having a forward delete key.

fn + delete does this. If you plug in a USB keyboard, the forward delete key works as expected.

No obvious way to "alt-tab" between an apps windows, even less obvious on international keyboards.

⌘ + ` (this is the back-tick above tab). You can change this by going to System Preferences → Keyboard → Keyboard Shortcuts, clicking on the "Keyboard and Text Input" category, then editing "Move focus to next window." This option is buried because Apple thinks Mission Control is easier. :/

No way to use arrow keys to select the OK and cancel buttons in a dialog.

System Preferences → Keyboard → Keyboard Shortcuts. Check "Full Keyboard Access" to use tab, space, & enter on controls.

I hope that helps!

[+] Udo|13 years ago|reply
The proper desktop keyboard has a forward delete key, it's just the laptops (and BT keyboard) that have to make do with [Fn + Del].

The Alt-Tab thing for apps gets on my nerves as well, and I've been a Mac user for ten years now. However, it's easy to go into the Sys Prefs and change the default key shortcut for that to something reasonable. The functionality is already there, it's just hidden behind an obscure key binding.

Cycling through buttons in dialog boxes works with the Tab key. The first thing you need to do when you get a new Mac is to go into System Preferences and enable nav keys for all UI elements, it's a single checkbox.

The defaults on the Mac are a disaster, you'll have to revisit pretty much every single preference pane, but it's worth it.

[+] LordIllidan|13 years ago|reply
Even worse - on my MBP there is no pound sign on the keyboard. Try coding without a pound sign! (EDIT: I'm referring to the hash key, i.e. #)

(I know it's alt 3, but WHY didn't they mark it on the keyboard? Newcomers have to google this! There is a sign on the '2' key that indicates euro (alt 2 is euro sign on my keyboard), so they could have done it easily on the 3 key.

[+] jvzr|13 years ago|reply
I would love for Microsoft to introduce some Apple-isms in Windows: text navigation is particularly awful, and I'm far more efficient on OS X when it comes to text. The lack of forward delete key doesn't bother me or hinder me at all: command-right + delete takes care of it.
[+] lukeholder|13 years ago|reply
switching between app windows is command+` just above command+tab
[+] r0s|13 years ago|reply
Worked on a mini all last year, first real mod I did was fixing forward delete: http://pqrs.org/macosx/keyremap4macbook/

Made the dock 2D, bought a wired keyboard and mouse, line in adapter for my analog headset and it was a usable workstation.

[+] pkamb|13 years ago|reply
What did you remap it to?
[+] cdrxndr|13 years ago|reply
OS X has an delightful affinity for Emacs bindings in standard implementations - try Ctrl-d to delete without leaving home row.

Mind you, if you're in MS Word for Mac then you'll just have to suck on an egg: no Ctrl-d, Ctrl-a, Ctrl-e for you.

[+] ultimoo|13 years ago|reply
My CapsLock is mapped to Control and I use 'C-d' to forward-delete in OS X.
[+] sudoshu|13 years ago|reply
As is mine. It's pretty nice...especially using 'C-h' for regular delete.