Le Tue, 27 Mar 2012 00:52:53 +0200, John Scipione <jscipione@xxxxxxxxx> a écrit:
You want to add an B_ALT_GR key role. Okay, I'll whip up a nice menu bitmap for it. :) But seriously, that would work and then I could get rid of the checkbox. But I'd have to hardcode it to 0x5f (right alt) and you couldn't change it via keymap otherwise the keymaps would all have to modified to include it. In the meantime the Checkbox provides the status quo. I won't work on improving it since it will go away.
While we need the role, I'm not sure we need the bitmap. The AltGr key is a modifier, but not one you use for keyboard shortcuts. And keymaps that don't have it, can live without it. It's fine to update the one that have a matching label on actual keyboards (french, german, spanish, lithuanian, and likely others that I don't know).
We need support for a layer below keymap that converts the intended shortcuts based on the key role to the current keymap and support for multiple keymaps and a way to switch between them. Basically the Keymap Switcher needs to be built-in and use an API provided by the Interface Kit.
The modifier keys seems to work fine (beside the AltGr mixup) already.A shortcut system would still have to handle shortcuts based on key labels OR posiitons on the keyboard, since the usual practise (both in BeOS/Haiku and elsewhere) is a mix of both ways that just grew up over the years. At least making sure that shortcuts are actually reachable would be a good start :)
-- Adrien.