[comp.windows.x] KeyPress event

bic@cgl.ucsf.edu (Bruce Cohen) (07/24/90)

	I have a problem with function keys on a Sparcstation
running X11R4 twm and OpenWindows release 2.0.
Many of the function keys do not appear to send any "code".  Using
xev I have found that these keys have a "KeyRelease event", but
lack a "KeyPress event".  In this example F8 shows only the release,
while F9 has both a press and release.

	KeyRelease event, serial 15, synthetic NO, window 0xb00001,
	    root 0x8006c, subw 0xb00002, time 3285832, (49,57), root:(902,694),
	    state 0x0, keycode 24 (keysym 0xffc5, F8), same_screen YES,
	    XLookupString gives 0 characters:  ""
	
	KeyPress event, serial 15, synthetic NO, window 0xb00001,
	    root 0x8006c, subw 0xb00002, time 3298878, (49,57), root:(902,694),
	    state 0x0, keycode 25 (keysym 0xffc6, F9), same_screen YES,
	    XLookupString gives 0 characters:  ""
	
	KeyRelease event, serial 15, synthetic NO, window 0xb00001,
	    root 0x8006c, subw 0xb00002, time 3299028, (49,57), root:(902,694),
	    state 0x0, keycode 25 (keysym 0xffc6, F9), same_screen YES,
	    XLookupString gives 0 characters:  ""



How can I get all of the function keys to have both presses and releases?

Thanks in advance.
-Bruce
	Bruce Cohen                    |  UUCP:     ..ucbvax!ucsfcgl!bic
	Computer Graphics Lab, S-926   |  INTERNET: bic@cgl.ucsf.edu
	University of California       |  BITNET:   bic@ucsfcgl
	San Francisco, CA  94143-0446  |  VOICE:    (415) 476-8291

rws@EXPO.LCS.MIT.EDU (Bob Scheifler) (07/24/90)

    Using xev I have found that these keys have a "KeyRelease event", but
    lack a "KeyPress event".

I hope not.  Such a server does not conform to the X protocol as intended.