On Wed, 15 Aug 2012 12:52:30 +0200 Lionel Orry <[email protected]> said:

> On Wed, Aug 15, 2012 at 6:42 AM, Carsten Haitzler <[email protected]>
> wrote:
> > On Tue, 14 Aug 2012 17:41:17 +0200 Lionel Orry <[email protected]> said:
> >
> >> On Tue, Aug 14, 2012 at 5:38 PM, Lionel Orry <[email protected]> wrote:
> >> > On Tue, Aug 14, 2012 at 5:21 PM, Carsten Haitzler <[email protected]>
> >> > wrote:
> >> >> On Tue, 14 Aug 2012 16:58:46 +0200 Lionel Orry <[email protected]>
> >> >> said:
> >> >>
> >> >>> On Tue, Aug 14, 2012 at 4:33 PM, Carsten Haitzler
> >> >>> <[email protected]> wrote:
> >> >>> > On Tue, 14 Aug 2012 16:16:21 +0200 Lionel Orry
> >> >>> > <[email protected]> said:
> >> >>> >
> >> >>> >> On my french keyboard I can't access a 'keyname' field of key down
> >> >>> >> event with the value 'grave'. I made tests and it seems we need to
> >> >>> >> use 'key' instead...
> >> >>> >>
> >> >>> >> Raster, can you please use 'ev->key' instead of 'ev->keyname' in
> >> >>> >> termio.c ? Seems to work for me.
> >> >>> >>
> >> >>> >> Thanks a lot for the feature btw :D
> >> >>> >
> >> >>> > what does the ` (or ~) key produce when u press it by itself in key?
> >> >>> > (vs keyname)?
> >> >>>
> >> >>> The ` character is produced using AltGr+è (see
> >> >>> http://www.forlang.wsu.edu/Images/help/kfrench.gif) so in that case we
> >> >>> get "grave" as 'key' field, "egrave" as 'keyname' field and ` as
> >> >>> 'string' field. I've not tried with the ~ key but it's a totally
> >> >>> different one (see the illustration) and I think you get the point.
> >> >>
> >> >> whats the "2" key on the top-left of the kbd? that key? for me it's
> >> >> "grave" or "backtick" or "backquote" its what i use in the shell to
> >> >> replace with stdout:
> >>
> >> To answer you precisely, here is what a trace gives me when I press
> >> that key (²):
> >>
> >> ev->key: "twosuperior" - ev->keyname: "twosuperior" - ev->string: "²"
> >>
> >> Lionel
> >
> > oooh. bugger. well that is the key i wanted to bind - on, i guess, us qwerty
> > and korean kbds its "grave" (or ~ with shift). gah. bloody different
> > keyboard maps. why did the world decide to be this silly. i was hunting for
> > a key combo that didnt work in editors or the shell etc. so i could steal
> > it.
> >
> 
> And what is exactly the problem of using 'key' instead of 'keyname'?
> You don't change your key, it's just Alt+backtick for everyone...

so here's the difference. ev->key is the key pressed including modifiers that
may modify it. eg for:

shift+4 key = "dollar" and keyname = "4". keyname is constant regardless of
modifiers and thus identifies the base "key" itself.

in this case that key on the top-left of my kbd is "grave" and shift+grave is
"asciitilde". in this case by changing to use key instead of keyname we will
chnage the actual key used for the binding based on modifiers. eg u may now
have to do alt+altgr+7 (i think looking at keymaps) which is rather horrible.

i need to find a better solution. that's why i'm grumbling. i'm changing it to
alt+home for this as alt_home vs just home itself seem to not do anything
different in my tests, so time to steal it.

-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    [email protected]


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to