[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xfree-i18n
Subject:    [I18n] AltGr for ISO_Level3_Shift
From:       David Holl <smyrph () ece ! wpi ! edu>
Date:       2003-09-02 23:22:45
[Download RAW message or body]

I'm having trouble using FOUR_LEVEL key groups ---- Here's an example xkb 
map to remap my space bar to produce the letters A, B, C, D:

partial default alphanumeric_keys
xkb_symbols "basic" {
	key.type[Group1]="FOUR_LEVEL";
	key <SPCE> { [ A, B, C, D ] };
	key <RALT> { type[Group1]="TWO_LEVEL", [ ISO_Level3_Shift, Multi_key ] };
};

From my understanding, this map should function like this:
	Space             -> A
	Shift+Space       -> B
	AltGr+Space       -> C
	AltGr+Shift+Space -> D

So I place the map in my X11/xkb/symbols/pc directory (with the rest of
the maps) and load it with:

	setxkbmap -rules xfree86 -model pc104 -layout "us,space" \
		-option "" -option "grp:ctrl_shift_toggle"

But at a command line (xterm/tcsh), the A & B mappings work, but pressing
AltGr+Space or AltGr+Shift+Space does not produce C or D, respectively.

However, I tried xev ("print contents of X events"), and I can see the
A,B,C,D keysyms just fine (below).  Any idea what's wrong?  Could the
application still be trying to interpret the AltGr key or something?

I'm running XFree86 4.3.0.  (if that helps...)

KeyPress event, serial 26, synthetic NO, window 0x1600001,
    root 0x48, subw 0x0, time 332437917, (85,65), root:(1422,86),
    state 0x2000, keycode 65 (keysym 0x41, A), same_screen YES,
    XLookupString gives 1 bytes:  "A"
...
KeyPress event, serial 26, synthetic NO, window 0x1600001,
    root 0x48, subw 0x0, time 332438995, (85,65), root:(1422,86),
    state 0x2001, keycode 65 (keysym 0x42, B), same_screen YES,
    XLookupString gives 1 bytes:  "B"
...
KeyPress event, serial 26, synthetic NO, window 0x1600001,
    root 0x48, subw 0x0, time 332440895, (85,65), root:(1422,86),
    state 0x2008, keycode 65 (keysym 0x43, C), same_screen YES,
    XLookupString gives 1 bytes:  "C"
...
KeyPress event, serial 26, synthetic NO, window 0x1600001,
    root 0x48, subw 0x0, time 332442642, (85,65), root:(1422,86),
    state 0x2009, keycode 65 (keysym 0x44, D), same_screen YES,
    XLookupString gives 1 bytes:  "D"


_______________________________________________
I18n mailing list
I18n@XFree86.Org
http://XFree86.Org/mailman/listinfo/i18n
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic