On Tue, Aug 14, 2012 at 5:21 PM, Carsten Haitzler <ras...@rasterman.com> wrote:
> On Tue, 14 Aug 2012 16:58:46 +0200 Lionel Orry <lionel.o...@gmail.com> said:
>
>> On Tue, Aug 14, 2012 at 4:33 PM, Carsten Haitzler <ras...@rasterman.com>
>> wrote:
>> > On Tue, 14 Aug 2012 16:16:21 +0200 Lionel Orry <lionel.o...@gmail.com> 
>> > 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:
>
> rm `find / -name *.jpg`
>
> that `

Yes this is the character I am talking about, a backtick. The '2' key
on the top left side of a French keyboard is simply a square (power 2)
symbol: --> ²

As a matter of fact (I just tried), this key with the modifier Shift
displays a tilde (~) under terminology. But I suppose it depends on
the xkbd variants, extensions, and maybe the exact locale too, not
sure.

Now the question is, you want to map a geographically placed key on
the keyboard (i.e. the key on the top-left side) or you want to map a
character? I believe mapping a character makes more sense (as does
your readme line as well: Alt+backtick). And we are lucky, evas gives
us the computed value of the character directly, when modifiers are
applied (in my case, Alt-Gr).

Simply using ev->key instead of ev->keyname would work for everyone
IMO, even though we don't have the same geographically keys to push.
All foreign keyboards users are used to it anyway, but the cleanest
way is to check for the computed character name, "grave" in our case.

Aside note, to do this shortcut on a french kbd we actually have to
press Alt+AltGr+è (three keys). But as I said, we are used to weird
shortcuts, as long as they correspond to the documentation... And
then, when it is configurable, we re-configure it.

>
> --
> ------------- Codito, ergo sum - "I code, therefore I am" --------------
> The Rasterman (Carsten Haitzler)    ras...@rasterman.com
>

------------------------------------------------------------------------------
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
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to