Yves Forkl wrote: >> >> 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. >> > > 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.) >
No, not at all. Java only supports Alt, AltGraph, Ctrl, Meta, Shift, as modifier keys. See http://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/InputEvent.html > While not having tried XXE's input method support yet, Be warned that we never managed to make XXE's integrated input method support work on Linux. A Japanese user managed to do this, but only after purchasing ATOK, a commercial product. More info. here: http://www.xmlmind.com/pipermail/xmleditor-support/2010-March/008411.html Thank you for the trick below. > 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...). -- XMLmind XML Editor Support List [email protected] http://www.xmlmind.com/mailman/listinfo/xmleditor-support

