public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
From: Jon TURNEY <jon.turney@dronecode.org.uk>
To: cygwin-xfree <cygwin-xfree@cygwin.com>
Cc: phil.betts@gmail.com
Subject: Re: I lose characters because keycode of Fn is same than DEL
Date: Fri, 01 Jul 2011 15:14:00 -0000	[thread overview]
Message-ID: <4E0DE435.9060608@dronecode.org.uk> (raw)
In-Reply-To: <BANLkTikGYwPm7RjVLQbPj_qi+Net+WTyvQ@mail.gmail.com>

On 01/07/2011 12:21, Phil Betts wrote:
> 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

Thanks.

I was aiming to generate an unused keycode, though, so I'm not sure I've
picked a good one.

Can I see the output of 'setxkbmap  -print' as well, please?

-- 
Jon TURNEY
Volunteer Cygwin/X X Server maintainer

--
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/


  reply	other threads:[~2011-07-01 15:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-10  9:33 Paul Maier
2011-06-23 11:34 ` Jon TURNEY
2011-06-30  8:40   ` Phil Betts
2011-06-30 16:51     ` Jon TURNEY
2011-07-01 11:21       ` Phil Betts
2011-07-01 15:14         ` Jon TURNEY [this message]
2011-07-05 12:50           ` Phil Betts
2011-07-06  8:16             ` Jon TURNEY

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E0DE435.9060608@dronecode.org.uk \
    --to=jon.turney@dronecode.org.uk \
    --cc=cygwin-xfree@cygwin.com \
    --cc=phil.betts@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).