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 04/07/2011 16:19, Phil Betts wrote:
> On 1 July 2011 16:13, Jon TURNEY <jon.turney@dronecode.org.uk> 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/


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