Discussion:
Using Eject Key as Trigger Hot Key?
yenant
17 years ago
Permalink
Is there a way to use the eject key as a trigger's hot key? I want to
be able to map Shift-Eject, Command-Eject, Option-Eject, and other key
combinations to AppleScripts and shell scripts to eject my iPod,
iPhone, all external media, etc. However, Quicksilver does not
recognize the eject key as far as I can tell.
Sesquipedalian
17 years ago
Permalink
No it doesn't. From what I understand, the Eject key isn't a normal
key, and from the perspective of software is not really part of your
keyboard at all. Instead, OS X seems to treat it more like a hardware
button, similarly to the power button.
Post by yenant
Is there a way to use the eject key as a trigger's hot key? I want to
be able to map Shift-Eject, Command-Eject, Option-Eject, and other key
combinations to AppleScripts and shell scripts to eject my iPod,
iPhone, all external media, etc. However, Quicksilver does not
recognize the eject key as far as I can tell.
yenant
17 years ago
Permalink
No it doesn't.  From what I understand, the Eject key isn't a normal
key, and from the perspective of software is not really part of your
keyboard at all.  Instead, OS X seems to treat it more like a hardware
button, similarly to the power button.
You are indeed correct. Based upon what you wrote, I dug this up:

http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSEvent_Class/Reference/Reference.html#//apple_ref/occ/instm/NSEvent/keyCode
Note that some function keys are handled at a lower level
and are never seen by your application. They include the
Volume Up key, Volume Down key, Volume Mute key, Eject
key, and Function key found on many iBook and PowerBook
computers.
Thanks!
George
17 years ago
Permalink
Oddly enough I thought the same thing about the function key, but
somehow quicksilver can see it. From the link you quoted this should
be impossible.
...
Loading...