Duplicate :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
Name: ynR10250 Date: 11/27/2003 On the system with Gnome & xkb, use any layout with non-latin additional group of symbols (for instance, Russian). There's an example of InputDevice section in XFree86 config file: Section "InputDevice" Identifier "Keyboard0" Driver "keyboard" Option "XkbRules" "xfree86" Option "XkbModel" "pc105" Option "XkbLayout" "us,ru" Option "XkbOptions" "grp:shift_toggle" EndSection The same layout, at least in theory, may be created at runtime by calling setxkbmap -layout "us,ru" -option "grp:shift_toggle" -rules xfree86 -model pc105 Switch between groups by pressing left then right Shift. Compile and run a simplest test: import java.awt.*; public class AcTest { static Frame frame = null; static TextField tf = null; public static void main( String args [] ) { frame = new Frame("Input test"); tf = new TextField(); frame.add( tf); frame.setSize(200,80); frame.setLocation(300,300); frame.setVisible( true ); } } Switch to Russian, select text field and type 'q': there must be 0x0439 character added but will be no input at all. Also, no events generated. ======================================================================
|