This might not work for you, but I stumbled across this thread in looking for a solution to my situation and figure it might help others:
I’m running MacOS and wanted to be able to pull up the application switcher with a key other than “tab” on the Model 01 and cycle through applications. I ran into the same problem- I could only switch layers with the key pressed down or trigger the command key press event; not both.
I ended up mapping MagicCombo to the keys I wanted to use instead of creating an entire layer. It works reasonably well, though there’s a moment in which it doesn’t capture repeated presses of the combo.
Relevant code:
USE_MAGIC_COMBOS({
/* Command+Tab on Command+Command press */
.action=applicationSwitcher,
.keys= { R1C7, R2C8 }
},
/* Add in Shift key to reverse it */
{
.action=applicationSwitcherReverse,
.keys= { R1C7, R0C7, R2C8 }
});
and
static void applicationSwitcher(uint8_t combo_index) {
kaleidoscope::hid::pressKey(Key_Tab.keyCode, true);
}
static void applicationSwitcherReverse(uint8_t combo_index) {
kaleidoscope::hid::pressKey(Key_Tab.keyCode, true);
}