Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I have a fairly generic USB keyboard plugged into my MacBook Pro. The Delete key doesn't seem to do anything most of the time. When I try to create a shortcut using it (to display the key code) it acts as if it's dead. Other keys around it (Home/End/PgUp/PgDn) seem to work fine.

Now here's the really interesting part. When I push the key in text edit, it seems to do a delete-forward.

I want to use this key with Cmd (the Windows key on my keyboard) to move files to the Trash. Can anybody explain why this key is acting the way it is? Can anyone suggest a utility which will tell me which key I am pressing on my keyboard? I used to use xev on an X Windows system. Is there something like that on a Mac without X installed?

Actually, I want the Delete key, by itself to do what Cmd Bkspc does in Finder. It moves a file to the trash.

But the standard OS X keyboard shortcut window won't accept any of the keys in the 6-key block with (Ins/Del/Home/End/PgUp/PgDn)

It's interesting. When I first pull up the keyboard viewer, it shows a diagram of a standard Mac keyboard. As soon as I hit one of the above 6 keys, the map changes to an extended keyboard closer to what I have. But the diagram has my Cmd/Opt keys swapped.

Is there any way for me to tell the OS I am using an extended keyboard?

The frustrating thing is, Mac OS is training me to use that key. It does something useful in lots of built-in applications. But I can't assign it to a hot key.

iCal - deletes an appointment (Cmd+Backspace does the same) textedit - deletes forward

share|improve this question
    
Based on your comments to @scottishwildcat, I would say that OS X is mapping your delete key to the same sequence as fn+delete (where delete is backspace on a Windows keyboard). On a Mac keyboard, fn+delete will do the same thing as the delete key on your keyboard. –  zpletan Oct 3 '11 at 19:45
add comment

5 Answers

That's completely normal. The key called delete on Windows is called forward delete on OS X, even though it's often labeled like delete ⌦. It deletes a character forward in text views. It doesn't delete items in many applications like Finder, presumably because it would be too easy to press accidentally.

Many shortcut recorders don't allow using just forward delete as a shortcut. You can often edit the property lists that store the shortcuts directly though. See How to remap delete and shift+delete keys to delete and permanently delete a file in Mac OS X Lion?.

share|improve this answer
    
I didn't quite parse your first sentence. "On Mac keyboards the same key and key code is used for forward delete (⌦)." Which two things are the same? As I added above, I really want the key marked 'delete' on the key cap to do the same thing that ⌘⌫ (cmd bckspc) does. –  Chris Quenelle Mar 3 '11 at 23:52
add comment

Perhaps you should replace your generic PC keyboard with a modestly-priced external USB keyboard designed specifically for Mac OS X.

I use the Matias USB 2.0 keyboard, which costs US $30.00.

MacAlly makes a range of models that start at US $20.00.

share|improve this answer
add comment

ControllerMate should do the job.

It lets you map any key to any function anywhere (aside from hardware keys like the on/off button). All functions are keyboard-specific, that is you can and must consider each keyboard separately. E.g. my ShiftLock keys function as a left-hand equivalent of Return, ⌘-Return, ⌘-P and Delete and Forward Delete key, in combination with modifiers.

Only problem: it's not really the most straightforward UI, with flow sheets on a plane and several floating windows. I spent quite some time trying and configuring some media keys... Still, a single reassignment is pretty simple.

Most important: it's a hack close to hardware but it's been rock solid on Leopard and Snow Leopard, after a short period without a stable version. No comparison to some vendor's drivers.

share|improve this answer
add comment

You don't say whether you've tried it already, but I'd try the built-in OS X Keyboard Viewer first -- you access it from the menu bar, but you need to turn it on in the Keyboard system prefs, Keyboard tab first.

share|improve this answer
    
I just tried the keyboard viewer, (thanks for the tip!) It shows the delete key being pushed. So at some level it's a live key. –  Chris Quenelle Mar 2 '11 at 18:27
    
Actually, the backspace key shows a left-delete glyph (block arrow pointing left) and the delete key shows a right-delete glyph (block arrow pointing right) –  Chris Quenelle Mar 2 '11 at 18:54
1  
It sounds like you might want to remap your keys. I've used DoubleCommand <doublecommand.sourceforge.net/>; to do this in the past, when I had a Windows keyboard hooked up to my Mac. –  Adam Rice Sep 2 '11 at 17:00
add comment

There's an (albeit old) application called "AsyncKeys" (http://asynckeys.mac.findmysoft.com/)

You'll need Rosetta for this to run if you're on an intel mac.

It should tell you what key you are pressing.

Cheers.

share|improve this answer
    
It says "Classic Environment" is no longer supported. Does that mean I don't have Rosetta? I thought I did. I'm running Snow Leopard. –  Chris Quenelle Jan 31 '11 at 18:50
    
Rosetta is an optional install with Snow Leopard. –  g . Mar 1 '11 at 11:37
    
Classic is not the same as Rosetta. Classic is for running REALLY old, pre-OS X software, and was discontinued with OS X 10.5. The link above for AsyncKeys says it's PPC and for OS X 10.2 and higher, so it will need Rosetta but shouldn't need Classic. There maybe older versions of it around that were written for OS 9 though. –  nekomatic Aug 2 '11 at 13:14
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.