Huh, I did a quick sanity check and was very surprised at the result. Putting <LShift>a</LShift>
into the box caused it to be replaced by A
in the formatted view, which is okay I guess, but also in the source text box, which is very unexpected to me. This makes the chord action completely visually indistinguishable from <RShift>a</RShift>
after it is set.
What's going on here? What happens if I hit Apply on this A
without changing it at all - will it be saved as a different action? Or did this "flattening" happen when the chord was set in the first place? If so, is the Twiddler 4 just incapable of sending certain scan codes without some third party config generator?
Back on topic to my media key problem, this means that the deletion of the HIDCode tag from the text box in the Edit panel actually does not specifically indicate some syntactic incorrectness - it could just be semantic non-canonicity, where the bug is that the HID code is not translated back correctly. I will investigate further, maybe the key is actually being saved into the config and being sent, it's just being interpreted incorrectly?
Edit: No, it's not. Using https://w3c.github.io/uievents/tools/key-event-viewer.html to view the events, the MediaPlayPause key on my keyboard shows up correctly, but the Twiddler sends nothing for the second chord, and space-asdf only for the first chord.