This file adds a few extras to KeyRemap4Macbook to make things better for Eclipse users.
<?xml version="1.0"?> <root> <list> <item> <name>Hold Command+H to Hide Application</name> <appendix>(You can adjust the threshold time of holding by</appendix> <appendix>"[Holding Key to Key] Holding Threshold" in Key Repeat tab.)</appendix> <identifier>remap.holdcommandH</identifier> <autogen>--HoldingKeyToKey-- KeyCode::H, VK_COMMAND | ModifierFlag::NONE, KeyCode::VK_NONE, KeyCode::H, VK_COMMAND, Option::NOREPEAT</autogen> </item> <item> <name>Disable Cmd+H</name> <identifier>remap.disablecommandH</identifier> <autogen>--KeyToKey-- KeyCode::H, VK_COMMAND, KeyCode::VK_NONE</autogen> </item> <item> <name>Change Cmd+H to Ctrl+H</name> <identifier>remap.commandHToControlH</identifier> <autogen>--KeyToKey-- KeyCode::H, VK_COMMAND, KeyCode::H, VK_CONTROL</autogen> </item> <item> <name>Use PC Style Alt+F4</name> <appendix>Disable Cmd+Q, remap Alt+F4 to Cmd+Q</appendix> <identifier>remap.pcstyle_altf4.pat</identifier> <autogen>--KeyToKey-- KeyCode::F4, VK_OPTION, KeyCode::Q, VK_COMMAND</autogen> <autogen>--KeyToKey-- KeyCode::Q, VK_COMMAND, KeyCode::VK_NONE</autogen> </item> </list> </root>