From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5115 invoked by alias); 1 Jul 2011 11:21:50 -0000 Received: (qmail 5107 invoked by uid 22791); 1 Jul 2011 11:21:49 -0000 X-SWARE-Spam-Status: No, hits=-0.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-fx0-f42.google.com (HELO mail-fx0-f42.google.com) (209.85.161.42) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 01 Jul 2011 11:21:36 +0000 Received: by fxe23 with SMTP id 23so3065802fxe.15 for ; Fri, 01 Jul 2011 04:21:34 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.86.200 with SMTP id t8mr4597533fal.54.1309519292503; Fri, 01 Jul 2011 04:21:32 -0700 (PDT) Received: by 10.223.97.65 with HTTP; Fri, 1 Jul 2011 04:21:32 -0700 (PDT) In-Reply-To: <4E0CA974.4030506@dronecode.org.uk> References: <612FC9F74FD24AD98964B222EA085F89@sulzer.de> <4E0324BB.5020004@dronecode.org.uk> <4E0CA974.4030506@dronecode.org.uk> Date: Fri, 01 Jul 2011 11:21:00 -0000 Message-ID: Subject: Re: I lose characters because keycode of Fn is same than DEL From: Phil Betts To: cygwin-xfree Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact cygwin-xfree-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-xfree-owner@cygwin.com Reply-To: cygwin-xfree@cygwin.com Mail-Followup-To: cygwin-xfree@cygwin.com X-SW-Source: 2011-07/txt/msg00000.txt.bz2 On 30 June 2011 17:51, Jon TURNEY 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/