Hussein Shafie schrieb:
> Kevin Flynn wrote:
>> Is it possible to get XmlMind to recognise the "windows" key as a
>> modifier when running on Linux (Kubuntu in my case)? I've tried "meta"
>> and "mod", but they don't work.
>>
>
> This is currently not possible.
>
> We would really love to support the "Windows" key as a modifier on
> Linux. However it seems that there is currently no way to implement that
> in Java/AWT.
>
> ---
> PS: Xev says that the "Windows" keys correspond to Super_L and Super_R.
> We hope that a future Java runtime will support "super" as a input event
> modifier.
Is this problem related to XXE's support for input methods which is available
since V. 4.4? (Neither of you didn't mention it.)
While not having tried XXE's input method support yet, I think I might still be
able to offer some help: XXE on Kubuntu should by default rely on the system's
keyboard layout, so maybe you can obtain what you want already at this level
without having to trick XXE into it.
I am not sure how to achieve exactly your desired keyboard layout, but the
following code could give you some insights. It is a section I added to
/usr/share/X11/xkb/symbols/altwin in order to adapt my keyboard in a quite
similar fashion (on Ubuntu Hardy Heron):
// Make both Windows keys act as Meta while AltGr acts
// as Mode_switch and ISO_Level_Shift3
// (like "meta_win", but do not map Alt_R in order to keep AltGr)
partial modifier_keys
xkb_symbols "meta_win_with_altgr" {
key <LALT> { [ Alt_L, Alt_L ] };
key <LWIN> { [ Meta_L ] };
key <RWIN> { [ Meta_R ] };
modifier_map Mod1 { Alt_L };
modifier_map Mod4 { <META>, Meta_L, Meta_R };
};
You would also have to extend the appropriate section in /etc/X11/xkb/base.xml
with an entry for this layout option. Below the "altwin" configItem, add this:
<option>
<configItem>
<name>altwin:meta_win_with_altgr</name>
<description>Meta is mapped to the Win-keys, while Right Alt is
usable for Mode_switch.</description>
</configItem>
</option>
Then, in the file with your base layouts (mine is German, so the file is
/usr/share/X11/xkb/symbols/de), add
include "altwin(meta_win_with_altgr)"
before the end of the section within { } that defines the base layout you use.
After restarting the X server, you should see the effect.
Hope this helps a bit (if your and my flavour of Ubuntu are similar enough...).
Yves
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support