key_release_event problem
- From: David Sundqvist <azzie netpolicy com>
- To: gtk-list redhat com
- Subject: key_release_event problem
- Date: Sun, 17 May 1998 16:07:03 +0000 (GMT)
In a project I'm working on I'm trying to install a signal handler for a
key_release_event. However, the signal handler didnt get called when a key
was released, so I've compiled gtk with debug options turned on. The
output from a simple test program appears to show that events for
keypresses are generated correctly, but it seems that there are no key
release events generated. Am I missing something, or is there a bug here?
Best regards,
David Sundqvist
Output generated from gdk in debug mode in a simple test program:
key press: window: 104857606 key: Control_L 65507
key press: window: 104857606 key: Shift_L 65505
key press: window: 104857606 key: Control_L 65507
key press: window: 104857606 key: Shift_L 65505
Trying something similar with xev it outputs events for both the press and
the release:
KeyPress event, serial 18, synthetic NO, window 0x6400001,
root 0x28, subw 0x0, time 2067484660, (6,1), root:(293,217),
state 0x0, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 characters: ""
KeyRelease event, serial 18, synthetic NO, window 0x6400001,
root 0x28, subw 0x0, time 2067484780, (6,1), root:(293,217),
state 0x4, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 characters: ""
KeyPress event, serial 18, synthetic NO, window 0x6400001,
root 0x28, subw 0x0, time 2067485270, (6,1), root:(293,217),
state 0x0, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
XLookupString gives 0 characters: ""
KeyRelease event, serial 18, synthetic NO, window 0x6400001,
root 0x28, subw 0x0, time 2067485400, (6,1), root:(293,217),
state 0x1, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
XLookupString gives 0 characters: ""
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]