I'm trying to create a custom keyboard .keylayout file for OS X. I need the correct modifier for mapset value. First the user presses the caps lock key. Next the user presses command key + some letter. My current attempts have failed because of wrong modifier value inside the <keyMapSelect> tag and OS X won't load the .keylayout file because of this error.
BTW, 1) Is there a detailed tutorial/guide/spec for .keylayout files? I can't find any.
2) What is the meaning of "?" in the modifier value? (E.g. <modifier keys="command anyShift? caps? anyOption? anyControl?" />)
<keyMapSelect mapIndex="6">
<modifier keys="command caps?"> <!-- need correct value for keys -->
<keyMapSelect>