tmk_keyboard icon indicating copy to clipboard operation
tmk_keyboard copied to clipboard

[feature required] dual-role key for LAYER_MOMENTARY and layer ONESHOT

Open chenzhihuai1990 opened this issue 7 years ago • 2 comments

I hope there is a key that

  1. holding it will switch a layer
  2. 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

  1. press alt+1 will active F1
  2. tap alt and then press 1 will also active F1 and then back to layer 0 automatically (the default layer)

This will be useful, when you want to press multi-key at the same time, such as, ctrl+alt+F1

chenzhihuai1990 avatar Dec 11 '18 07:12 chenzhihuai1990

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?

tmk avatar Dec 11 '18 12:12 tmk

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.

chenzhihuai1990 avatar Dec 11 '18 13:12 chenzhihuai1990