1

I've been struggling with this for a few hours now. What I want to achieve is I want to map Left Ctrl to Left Command ⌘. However, I want to preserve the functionality of Ctrl+Tab. So Ctrl+Anything should be Command ⌘+Anything with the exception of Tab. What I could achieve:

  • Leave Ctrl and Command ⌘ as they are (default)
  • Map Ctrl to Command ⌘ (in this case Ctrl+Tab = Command ⌘+Tab)
  • Map Ctrl to Command ⌘ and map Command ⌘+Tab to Ctrl+Tab (in this case Command ⌘+Tab is not preserved)

(I might want to add some other exceptions in the future, but seeing the basics surely helps).

Thank you.

1

Since both right and left are identical in functionality (I hope this is the case in your setup), we first map left Ctrl to the right :

<autogen>
  __KeyToKey__
  KeyCode::CONTROL_L,
  KeyCode::COMMAND_R
</autogen>

Then map right +Tab to Ctrl+Tab:

<autogen>
  __KeyToKey__
  KeyCode::TAB, ModifierFlag::COMMAND_R,
  KeyCode::TAB, ModifierFlag::CONTROL_L
</autogen>

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .