From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16427 invoked by alias); 5 Jul 2011 12:50:13 -0000 Received: (qmail 16237 invoked by uid 22791); 5 Jul 2011 12:50:12 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,TW_XK X-Spam-Check-By: sourceware.org Received: from smtpout.karoo.kcom.com (HELO smtpout.karoo.kcom.com) (212.50.160.34) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 05 Jul 2011 12:49:57 +0000 Received: from 213-152-38-55.dsl.eclipse.net.uk (HELO [192.168.0.13]) ([213.152.38.55]) by smtpout.karoo.kcom.com with ESMTP; 05 Jul 2011 13:49:53 +0100 Message-ID: <4E130870.4010804@dronecode.org.uk> Date: Wed, 06 Jul 2011 08:16:00 -0000 From: Jon TURNEY User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: cygwin-xfree@cygwin.com Subject: Re: I lose characters because keycode of Fn is same than DEL References: <612FC9F74FD24AD98964B222EA085F89@sulzer.de> <4E0324BB.5020004@dronecode.org.uk> <4E0CA974.4030506@dronecode.org.uk> <4E0DE435.9060608@dronecode.org.uk> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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/msg00011.txt.bz2 On 04/07/2011 16:19, Phil Betts wrote: > On 1 July 2011 16:13, Jon TURNEY wrote: >> I was aiming to generate an unused keycode, though, so I'm not sure I've >> picked a good one. > > Understood, although just about anything is preferable to Delete :) > > Since Fn functions as a modifier, perhaps one of the Mod keys, e.g. > Mod5 might be a better choice. > > As long as it can be distinguished from any other key, we can use > xmodmap to map it to whatever we want (e.g. Control_L for me). Well, I was aiming for it to do nothing by default and then it can be mapped to a modifier if desired. >> Can I see the output of 'setxkbmap -print' as well, please? > > xkb_keymap { > xkb_keycodes { include "xfree86+aliases(qwerty)" }; > xkb_types { include "complete" }; > xkb_compat { include "complete" }; > xkb_symbols { include "pc+gb+inet(pc105)" }; > xkb_geometry { include "pc(pc105)" }; > }; Hm.. this is strange, I have the same keymap, but when I generate that key event (I have to hack my X server to do that as I don't have a Fn key), I get: KeyPress event, serial 27, synthetic NO, window 0x800001, root 0x101, subw 0x0, time 7868875, (90,80), root:(2056,142), state 0x0, keycode 93 (keysym 0x0, NoSymbol), same_screen YES, XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False KeyRelease event, serial 27, synthetic NO, window 0x800001, root 0x101, subw 0x0, time 7868968, (90,80), root:(2056,142), state 0x0, keycode 93 (keysym 0x0, NoSymbol), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False .. and this seems right looking at the output of 'xmodmap -pk', so there's something else going on here I don't understand :-) > I get the same output regardless of whether X is started with or without > an external keyboard plugged in (is the external keyboard even > considered?). Not really, all the Windows keyboard input (which may come from real keyboards or programs pretending to be one) is composed into a single virtual X keyboard. Perhaps this isn't quite right but works well enough for most purposes :-) -- 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/