Modifier & Shift Layer

What would be the easiest way of making a key activate a modifier (like pressing CTRL) and shifting to another layer at the same time?

I could program the key to shift to another layer where I make every key in that layer being pressed with the modifier (LCTRL(Key_…)), but that seems quite cumbersome to write and maintain. Is there another way to tackle this problem more elegantly?


1 Like

Thanks. That only seems to cover when you want the prefix to be released before the key from the layer. As in CTRL+B X, for tmux, with CTRL+B being the prefix and released before the key X from the layer is being pressed. Very handy, but in my case I want the key from the layer to be prefixed with a key that is remained pressed down, as in CTRL+X, with CTRL being the prefix and being kept pressed down, then the key X from the layer being pressed and afterwards both keys are being released.