I'm attempting to make a keyboard in Keyman Developer 9.0. But rules involving any of the Alt keys seem to get ignored and produce no output in the debugger.
Here's my MCVE: this keyboard layout code is an attempt to modify the behavior of a single key, the Z key.
store(&VERSION) '9.0'
store(&NAME) 'Sandbox'
begin Unicode > use(main)
group(main) using keys
+ [SHIFT K_Z] > 'Shift! '
+ [LALT K_Z] > 'Lalt! '
+ [RALT K_Z] > 'Ralt! '
This compiles cleanly. Then typing Shiftz in the debugger print Shift!
as intended.
But Altz and Alt Grz don't do anything. It's as if those rules get ignored.
Same problem if I don't distinguish between left and right Alt keys and just use
+ [ALT K_Z] > 'Alt! '
How do I fix this?
My physical keyboard has a European layout, more specifically for Denmark... though I don't think this should have any effect on this issue.
There is a limitation in the Keyman Developer 9.0 debugger that prevents it working with Alt keys.
This limitation has been lifted in version 10.0.
Note that this is only a issue with the debugger. If you actually install the keyboard with version 9.0, it should work.
Content migrated from Marc Dudin's comment to the original question.