From: Benjamin R. <Ben...@ep...> - 2003-08-11 18:02:23
|
Hi Yan, Yan Wong <yan...@un...> writes: > --- pressing Return on the built-in keyboard --- > ############### <KeyPress>: KeyCode=<0x24000D> Unicode=<> > KeySym=<Return> detail=?? sendevent=0 type=2 > ############### <KeyRelease>: KeyCode=<0x24000D> Unicode=<> > KeySym=<Return> detail=?? sendevent=0 type=3 Ok, that's the regular Return key. > --- pressing Enter using the dedicated key on the built-in keyboard --- > ############### <KeyPress>: KeyCode=<0x340003> Unicode=<> KeySym=<??> > detail=?? sendevent=0 type=2 > ############### <KeyRelease>: KeyCode=<0x340003> Unicode=<> > KeySym=<??> detail=?? sendevent=0 type=3 This one is new to me. I can't find documentation about the Powerbook keyboard layout at the Apple documentation site. But from the Unicode layouts it seems that this keycode is used regularly in this combination. > --- pressing Enter using function-return on the built-in keyboard --- > --- (I have snipped the keypresses before and after as a result of > pressing the <function> key) --- > ############### <KeyPress>: KeyCode=<0x4C0003> Unicode=<> > KeySym=<Return> detail=?? sendevent=0 type=2 > ############### <KeyRelease>: KeyCode=<0x4C0003> Unicode=<> > KeySym=<Return> detail=?? sendevent=0 type=3 That's the regular KP_Enter key as documented for the standard keyboard layout. > --- pressing Enter using an external USB keyboard --- > ############### <KeyPress>: KeyCode=<0x4C0003> Unicode=<> > KeySym=<Return> detail=?? sendevent=0 type=2 > ############### <KeyRelease>: KeyCode=<0x4C0003> Unicode=<> > KeySym=<Return> detail=?? sendevent=0 type=3 Ditto. > Would it be possible to add the <0x340003> keycode as another enter > key? That is probably what we will have to do, yes. While we're at it, could you test the other keys on your keyboard to see what keycodes they have? Especially interesting are of course all those keys where the keysym is unknown. > Thanks. The linux version I have is only 8.3, and doesn't have it, KP_Enter works fine here on my setup with 8.3.1. Are you sure that your X11 server gives different keysyms for the two keys? You can test that with the xev tool. On Linux, all this functionality is in the X11 server, on the other platforms it has to be emulated. benny |