DreymaR / BigBagKbdTrixPKL

"DreymaR's Big Bag of Keyboard Tricks" for Windows with EPKL
Other
328 stars 32 forks source link

Remapping LAlt and RAlt #7

Open janstrohbeck opened 4 years ago

janstrohbeck commented 4 years ago

In my custom layout based on Cmk-eD-CAWide, I defined

SC02a = LAlt    Modifier    ; originally: LShift
SC136 = RCtrl   Modifier    ; originally: RShift
SC01d = LCtrl   Modifier    ; originally: LCtrl
;SC1361d = RCtrl  Modifier  ; originally: RCtrl
SC038 = Extend  Modifier    ; originally: LAlt
SC138 = RShift  Modifier    ; originally: RAlt
SC137 = RAlt    Modifier    ; originally: PrtScrs
SC03a = ESCAPE  VirtualKey  ; CapsLock as Escape

I need LAlt to be Extend and RAlt to be Shift. I used that setup for about half a year on Linux with your Linux repository and it works really well for me. Now I wanted to get it to work on Windows, but with this setup, LAlt now apparently does nothing and RAlt seems to be a combination of Shift and the original RAlt functionality. The other changes seem to work fine. Is it possible to configure it differently to get my setup to work? Did I configure it incorrectly?

DreymaR commented 4 years ago

I find Alt mappings to be tricky. If you don't use AltGr characters you should disable AltGr in your layout otherwise RAlt will send RAlt+LCtrl as you noticed. Why the LAlt key doesn't work as Extend is a bit strange to me, I'll take note and try to test it. But in general, mapping something to LAlt may also be tricky as not all apps work well. The LAlt key event is often triggered on KeyUp instead of KeyDown as is the usual way.

janstrohbeck commented 4 years ago

Actually I do use AltGr a lot, but I remapped it to the PrintScreen Key, which is right beside the original AltGr Key on my Laptop. Can I use another layer instead of AltGr to send characters like ä, !, %? Should I maybe use RAlt as Extend, but remap the extend layer to produce these characters? On the extend layer, I actually only use the arrow keys ;-)

DreymaR commented 4 years ago

Other layers are possible, such as dead keys and the four Extend layers.

What I'd consider to make sure everything works for you, is remapping the Alt keys and maybe other modifier keys by the registry method such as SharpKeys (modifier remapping is tricky both in MSKLC and EPKL). If that's an option, it's the safest option but of course a bit more drastic and not portable.