AltGr Take two..

Andrew Markebo flognat@flognat.myip.org
Tue Apr 17 11:41:00 GMT 2001


Drats.. doesn't work on latest 4.0.3, with cygwin1.dll from 14th of
april.

I use xkeycaps running remote on a linux-machine to see what happens.

With the redhat xmodmap.fi, altgr seems to be sticky, while the
control button flashes.

With the xmodmap generated by xkeycaps for "PC 105 key, wide Delete,
tall Enter (XFree86; Swedish/Finnish) keyboards." (included), altgr
isn't sticky, but Left control also lights up when pressing AltGr.

xev says on altgr press, release:

KeyPress event, serial 18, synthetic NO, window 0xa00001,
    root 0x2e, subw 0xa00002, time 1046101734, (25,52), root:(496,247),
    state 0x10, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
    XLookupString gives 0 characters:  ""

KeyPress event, serial 18, synthetic NO, window 0xa00001,
    root 0x2e, subw 0xa00002, time 1046101734, (25,52), root:(496,247),
    state 0x14, keycode 113 (keysym 0xff7e, Mode_switch), same_screen YES,
    XLookupString gives 0 characters:  ""

KeyRelease event, serial 21, synthetic NO, window 0xa00001,
    root 0x2e, subw 0xa00002, time 1046101814, (25,52), root:(496,247),
    state 0x2014, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
    XLookupString gives 0 characters:  ""

KeyRelease event, serial 21, synthetic NO, window 0xa00001,
    root 0x2e, subw 0xa00002, time 1046101814, (25,52), root:(496,247),
    state 0x2010, keycode 113 (keysym 0xff7e, Mode_switch), same_screen YES,
    XLookupString gives 0 characters:  ""

It sends a Control_L too much here.. 

        /Andy

-------------- next part --------------
!
! This is an `xmodmap' input file for 
!   PC 105 key, wide Delete, tall Enter (XFree86; Swedish/Finnish) keyboards.
! Automatically generated on Tue Apr 17 17:28:19 2001 by flognat with
! XKeyCaps 2.46; Copyright (c) 1999 Jamie Zawinski <jwz@jwz.org>.
! http://www.jwz.org/xkeycaps/
!
! This file makes the following changes:
!
! The "Esc" key generates Escape and Escape
! The "F3" key generates F3 and F13, and has no modifiers
! The "F8" key generates F8 and F18, and has no modifiers
! The "F10" key generates F10 and F20, and has no modifiers
! The "F11" key generates F11 and F11
! The "F12" key generates F12 and F12
! The "Scroll Lock" key generates Scroll_Lock
! The "Pause Break" key generates Find
! The "? 4 $" key generates 4, dollar, and dollar
! The "` '" key generates dead_acute and dead_grave
! The "Backspace" key generates BackSpace and Delete
! The "Num Lock" key generates Num_Lock, and has no modifiers
! The "Tab" key generates Tab and Tab
! The "E" key generates e, E, and currency
! The "^ ? ~" key generates dead_diaeresis, dead_circumflex, and dead_tilde
! The ": ." key generates period, colon, and Multi_key
! The "=/+/" key generates Select, and has no modifiers
! The "Alt" key generates Alt_L and Meta_L
! The "space" key generates space and space
! The "Alt Gr" key generates Mode_switch, and the Mod2 modifier
! The "=/+/" key generates Mode_switch, and the Mod2 modifier
! The "##" key generates Multi_key
! The "Ctrl" key generates Control_R, and the Control modifier
! The ", Del" key generates KP_Decimal

keycode 0x09 =	Escape		Escape
keycode 0x43 =	F1		F11
keycode 0x44 =	F2		F12
keycode 0x45 =	F3		F13
keycode 0x46 =	F4		F14
keycode 0x47 =	F5		F15
keycode 0x48 =	F6		F16
keycode 0x49 =	F7		F17
keycode 0x4A =	F8		F18
keycode 0x4B =	F9		F19
keycode 0x4C =	F10		F20
keycode 0x5F =	F11		F11
keycode 0x60 =	F12		F12
keycode 0x6F =	Print
keycode 0x4E =	Scroll_Lock
keycode 0x6E =	Find
keycode 0x31 =	section		onehalf
keycode 0x0A =	1		exclam
keycode 0x0B =	2		quotedbl	at
keycode 0x0C =	3		numbersign	sterling
keycode 0x0D =	4		dollar		dollar
keycode 0x0E =	5		percent
keycode 0x0F =	6		ampersand
keycode 0x10 =	7		slash		braceleft
keycode 0x11 =	8		parenleft	bracketleft
keycode 0x12 =	9		parenright	bracketright
keycode 0x13 =	0		equal		braceright
keycode 0x14 =	plus		question	backslash
keycode 0x15 =	dead_acute	dead_grave
keycode 0x16 =	BackSpace	Delete
keycode 0x6A =	Insert
keycode 0x61 =	Home
keycode 0x63 =	Prior
keycode 0x4D =	Num_Lock
keycode 0x70 =	KP_Divide
keycode 0x3F =	KP_Multiply
keycode 0x52 =	KP_Subtract
keycode 0x17 =	Tab		Tab
keycode 0x18 =	q
keycode 0x19 =	w
keycode 0x1A =	e		E		currency
keycode 0x1B =	r
keycode 0x1C =	t
keycode 0x1D =	y
keycode 0x1E =	u
keycode 0x1F =	i
keycode 0x20 =	o
keycode 0x21 =	p
keycode 0x22 =	aring		Aring
keycode 0x23 =	dead_diaeresis	dead_circumflex	dead_tilde
keycode 0x24 =	Return
keycode 0x6B =	Delete
keycode 0x67 =	End
keycode 0x69 =	Next
keycode 0x4F =	KP_7
keycode 0x50 =	KP_8
keycode 0x51 =	KP_9
keycode 0x56 =	KP_Add
keycode 0x42 =	Caps_Lock
keycode 0x26 =	a
keycode 0x27 =	s
keycode 0x28 =	d
keycode 0x29 =	f
keycode 0x2A =	g
keycode 0x2B =	h
keycode 0x2C =	j
keycode 0x2D =	k
keycode 0x2E =	l
keycode 0x2F =	odiaeresis	Odiaeresis
keycode 0x30 =	adiaeresis	Adiaeresis
keycode 0x33 =	apostrophe	asterisk
keycode 0x53 =	KP_4
keycode 0x54 =	KP_5
keycode 0x55 =	KP_6
keycode 0x32 =	Shift_L
keycode 0x5E =	less		greater		bar
keycode 0x34 =	z
keycode 0x35 =	x
keycode 0x36 =	c
keycode 0x37 =	v
keycode 0x38 =	b
keycode 0x39 =	n
keycode 0x3A =	m
keycode 0x3B =	comma		semicolon
keycode 0x3C =	period		colon		Multi_key
keycode 0x3D =	minus		underscore
keycode 0x3E =	Shift_R
keycode 0x62 =	Up
keycode 0x57 =	KP_1
keycode 0x58 =	KP_2
keycode 0x59 =	KP_3
keycode 0x6C =	KP_Enter
keycode 0x25 =	Control_L
keycode 0x73 =	Select
keycode 0x40 =	Alt_L		Meta_L
keycode 0x41 =	space		space
keycode 0x71 =	Mode_switch
keycode 0x74 =	Mode_switch
keycode 0x75 =	Multi_key
keycode 0x6D =	Control_R
keycode 0x64 =	Left
keycode 0x68 =	Down
keycode 0x66 =	Right
keycode 0x5A =	KP_0
keycode 0x5B =	KP_Decimal

clear Shift
clear Lock
clear Control
clear Mod1
clear Mod2
clear Mod3
clear Mod4
clear Mod5

add    Shift   = Shift_L Shift_R
add    Lock    = Caps_Lock
add    Control = Control_L Control_R
add    Mod1    = Alt_L
add    Mod2    = Mode_switch Mode_switch Henkan_Mode
add    Mod5    = Scroll_Lock


More information about the Cygwin-xfree mailing list