Posted by
| David Haley
USA (3,881 posts) Bio
|
Message
| Erm. This is the output from 'xev', a program that prints out every event that goes to it:
KeyPress event, serial 30, synthetic NO, window 0x4400001,
root 0x1a5, subw 0x0, time 250593019, (-925,536), root:(466,946),
state 0x10, keycode 36 (keysym 0xff0d, Return), same_screen YES,
" XLookupString gives 1 bytes: (0d) "
" XmbLookupString gives 1 bytes: (0d) "
XFilterEvent returns: False
KeyRelease event, serial 33, synthetic NO, window 0x4400001,
root 0x1a5, subw 0x0, time 250593107, (-925,536), root:(466,946),
state 0x10, keycode 36 (keysym 0xff0d, Return), same_screen YES,
" XLookupString gives 1 bytes: (0d) "
XFilterEvent returns: False
KeyPress event, serial 33, synthetic NO, window 0x4400001,
root 0x1a5, subw 0x0, time 250593443, (-925,536), root:(466,946),
state 0x10, keycode 108 (keysym 0xff8d, KP_Enter), same_screen YES,
" XLookupString gives 1 bytes: (0d) "
" XmbLookupString gives 1 bytes: (0d) "
XFilterEvent returns: False
KeyRelease event, serial 33, synthetic NO, window 0x4400001,
root 0x1a5, subw 0x0, time 250593539, (-925,536), root:(466,946),
state 0x10, keycode 108 (keysym 0xff8d, KP_Enter), same_screen YES,
" XLookupString gives 1 bytes: (0d) "
XFilterEvent returns: False
As you can see, the first press/release pair is for the normal enter, keysym 0xff0d, and the second pair is for the keypad, keysym 0xff8d.
Not sure where your ideas about what Linux is doing come from. Nor am I sure why you think the hardware is necessarily producing both cr/lf. The hardware is just sending in what key is pressed, not what a typewriter would do... |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | Top |
|