cajhin / capsicain

Powerful low-level keyboard remapping tool for Windows
349 stars 18 forks source link

Use LALT for altchar #36

Closed bitoj closed 3 years ago

bitoj commented 3 years ago

When using a Windows keyboard layout definition that has the AltGr option, a layer in the software stack above the Interception device introduces virtual Control keys in the mix when the right Alt key is pressed. This has the following consequences for combinations with RALT + numpad keys.

This can be demonstrated by choosing an AltGr layout, like German or US International, in the Windows language configuration.

Using RALT in Capsicain function altchar is therefore not desirable.

This simple fix only replaces RALT with LALT in the translation from the altchar definition in the ini to the virtual key sequence that is played at runtime when that function is invoked.

cajhin commented 3 years ago

I didn't try this (and I don't really want to, I kinda don't like the Alt keys). Wasn't even aware that the alt combos work with LALT too.

So, your decision: do you think it is cool (improves things) to change all altChar combos from RALT to LALT?

If yes, I'll merge this. No idea about the ramifications, that's your choice to make...

bitoj commented 3 years ago

Funny, until recently I wasn't aware that it also worked with RALT in certain circumstances.

I can't imagine downsides of using LALT. I have been using it since at least Windows 95, and I vaguely remember Windows 3.0 and DOS.

Improvement: this change opens up the power of Capsicain to users that

The latter category used to include me and might include me again in the near future.

I vote yes, merge it.