keymap-editor icon indicating copy to clipboard operation
keymap-editor copied to clipboard

view layer with ⇧.

Open Eh2406 opened this issue 10 months ago • 1 comments

While over engineering a key layout today, I went to add a new symbols layer. To get to the symbols layer I would hold my existing &mo _ (where _ is a "layers that's mostly numbers") and my dedicated Shift key. While getting all that configured, I accidentally tried typing as if it was set up. And it worked. If &mo n + $kp N1 gives me 1 then &kp LSHFT + &mo _ + $kp N1 gives me !. In retrospect that was obvious, that is what the normal keyboard does.

Without assistance, I find it tricky to design the layout. Everyone does that's why this tool exists. Thank you for it!

I don't know exactly what I'm asking for, some way to see "what could I type if I'd used this layer while holding this modifier". Perhaps a second copy of the keyboard for the "shift modified" symbols? Or a checkbox to change what's displayed on the keyboard to shift modified of the keypress?

Eh2406 avatar Jan 07 '25 04:01 Eh2406

I think for me this is one of those "I trust the user to know" scenarios.

It'd be tricky to work this out generically. I have metadata to indicate that a keycode is shifted so, for example, you can bind LPAR (() to something and the modifier toggles will disable the LSHFT option. But I don't have data saying that LPAR is a shifted 9.

Different locales will also have different shifted keys and that's not just a matter of layouts for different languages.

This also wouldn't factor in mod morphs since that would mean an entirely different key could be sent to the OS and the original modifier may no longer apply. There's a lot to consider to make it work right so it's not something I'm likely to get to in the near future.

nickcoutsos avatar Jan 07 '25 23:01 nickcoutsos