This is the mail archive of the cygwin-xfree mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: I lose characters because keycode of Fn is same than DEL


On 30 June 2011 17:51, Jon TURNEY <jon.turney@dronecode.org.uk> wrote:
> I've fixed the mapping for this (undocumented) virtual key code, so hopefully
> this works correctly now. I've uploaded a snapshot at [1]
>
> I can't test this as the keyboards I have with an Fn key don't generate a
> separate keypress for that, apparently Lenovo laptops are special in this
> regard :-), so please let me know if this works.
>
> [1] ftp://cygwin.com/pub/cygwinx/XWin.20110630-git-e89b8ba1b44331d1.exe.bz2

Thanks Jon, that works a treat.

The new output for the Fn key is:
[ 89311.789] winTranslateKey: wParam 000000ff lParam 01630001
[ 89311.789] winSendKeyEvent: dwKey: 85, fDown: 1, nEvents 2
[ 89311.789] winTranslateKey: wParam 000000ff lParam c1630001
[ 89311.789] winSendKeyEvent: dwKey: 85, fDown: 0, nEvents 2

The corresponding output in xev is now:

KeyPress event, serial 27, synthetic NO, window 0x400001,
    root 0x101, subw 0x0, time 89443079, (86,83), root:(202,215),
    state 0x0, keycode 93 (keysym 0xff7e, Mode_switch), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyRelease event, serial 27, synthetic NO, window 0x400001,
    root 0x101, subw 0x0, time 89443079, (86,83), root:(202,215),
    state 0x0, keycode 93 (keysym 0xff7e, Mode_switch), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False

Phil

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]