jgosmann / neo2-layout-osx

Neo2 keyboard layout file for macOS
GNU General Public License v3.0
43 stars 9 forks source link

Layer 4 Right Alt not working for me on High Sierra #12

Closed owlJaeger closed 4 years ago

owlJaeger commented 4 years ago

I need the following modification to make it work for me:

image

Maybe you can update the documentation or something. Just wanted to point that fix out.

jgosmann commented 4 years ago

What keyboard are you using and which complex modifications did you enable? It shouldn't be necessary to add that additional modification.

owlJaeger commented 4 years ago

I've enabled:

I am using the Razer BlackWidow Chroma V2 Keyboard

jgosmann commented 4 years ago

I noticed that you are remapping right_alt (equal to `right_option`). There is also a right_option pretty close to the top of the drop down list. How is the behavior if you use right_option instead of right_alt (equal to `right_option`) in the mapping? I suspect that they actually might not be equal (despite it saying so) and you keyboard is sending right_alt insteald of right_option.

What could also help to understand what is going on: If you disable all modifications, open karabiner-EventViewer and look which key code and name you get printed when you use the Alt and Windows keys.

owlJaeger commented 4 years ago

Using right_option for the modification also works for me. right_alt (equal to 'right_option') came from karabiner-EventViewer because I've used it to import the key.

Outputs of karabiner-EventViewer (without any modifications):

Interestingly, without the simple modification but with the complex modifications, right_alt is interpreted as right_gui by karabiner-EventViewer

jgosmann commented 4 years ago

Interestingly, without the simple modification but with the complex modifications, right_alt is interpreted as right_gui by karabiner-EventViewer

And with the simple modification?

owlJaeger commented 4 years ago

Interestingly, with the simple modification, nothing is shown by the EventViewer, just like it was never pressed.

jgosmann commented 4 years ago

I took another good look at the issue and discovered that I actually hat the same remapping from right_option to right_command in my simple modifications, but only for my external keyboard (so it wasn't visible unless explicitly selecting that target device). There is also a mapping of right_option to right_command in the complex rules, that added to the confusion, but it's purpose is that on a Apple keyboard the right option can be used as command (because right command will be mod 4 and there is no need for an additional mod 3/alt).

I think the best course of action here is indeed to amend the documentation with suggested additional mappings for external Windows keyboards, because such simple modifications can be done a a per-device basis (which is not possible with complex modifications and could then make it hard to switch between the internal and external keyboard).

Thank you for providing all that additional information!