Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to remap the (Eject) key to Volume Up.

I already have KeyRemap4MacBook and need the appropriate private.xml file.

share|improve this question

Save this as private.xml:

<?xml version="1.0"?>
    <name>eject to volume up</name>
    <autogen>--ConsumerToConsumer-- ConsumerKeyCode::EJECT, ModifierFlag::NONE, ConsumerKeyCode::VOLUME_UP</autogen>
    <autogen>--ConsumerToConsumer-- ConsumerKeyCode::EJECT, VK_OPTION, VK_SHIFT, ConsumerKeyCode::VOLUME_UP, VK_OPTION, VK_SHIFT</autogen>
    <autogen>--ConsumerToConsumer-- ConsumerKeyCode::EJECT, VK_OPTION, ConsumerKeyCode::VOLUME_UP, VK_OPTION</autogen>

After that, press the reload XML button in the first tab and select the checkbox at the top of the list.

You can remove the delay with NoEjectDelay. There's no preference pane for it, but it just removes the delay after you install it and restart.

share|improve this answer

Your Answer


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.