tmk_keyboard
tmk_keyboard copied to clipboard
[feature required] dual-role key for LAYER_MOMENTARY and layer ONESHOT
I hope there is a key that
- holding it will switch a layer
- tapping it will switch a layer for just oneshot(just like oneshot key but for layer switching)
example: Assume the key I want is called alt and in layer 1 the number key 1 to 9 are mapped to F1 to F9, then
- press
alt+1will activeF1 - tap
altand then press1will also activeF1and then back tolayer 0automatically (the default layer)
This will be useful, when you want to press multi-key at the same time, such as, ctrl+alt+F1
Oneshot layer action has been on my to-do list for long time, I'll work on it someday :D
I wonder how you input 'ctrl+alt+F1', I assume that you have real alt modifier keys in addition to the 'alt'(oneshot layer), right? Or you mean that the 'alt' key works as 'alt' modifier too?
The former is right. I have mapped another useless key as 'alt' modifier.
Thank you for reading this issue and implement such wonderful tools.
I am trying to implement this feature by myself, but it is still hard for me to understand the framework of the code.