Re: [code] key binding on µ on a azerty/french keyboard

From: Pascal <patatetom.att.gmail.com>
Date: Wed, 5 Apr 2017 22:30:49 +0200

I just double-checked and confirm.

the status bar says :

42 for * and 181 for µ

249 for ù and 37 for %

here are the results of some tests :

keys['c*'] = function() ui.statusbar_text = " OK :-)" end
keys['cµ'] = function() ui.statusbar_text = " OK :-)" end
keys['cs*'] = function() ui.statusbar_text = " OK :-)" end

keys['cù'] = function() ui.statusbar_text = " OK :-)" end
keys['c%'] = function() ui.statusbar_text = " OK :-)" end

(green is ok and red is ko)

nothing change for µ if I add keys.KEYSYMS[181]='µ' to my init.lua file.

2017-04-05 21:17 GMT+02:00 cryo shock <axteffekt.att.gmail.com>:

> Are you sure that you're not binding it to the wrong key code?
> Did you add the following code to your init.lua?
>
> events.connect(events.KEYPRESS, function(code)
> ui.statusbar_text = code
> end)
>
> After reseting TA, check the status bar in the lower left corner for the
> key code that gets printed when you press your mu key.
> Is it cµ?
>
> 2017-04-05 16:44 GMT+02:00 Pascal <patatetom.att.gmail.com>:
>
>> hi everybody,
>>
>> I'm trying to define a key binding on the "µ*" key on a azerty/french
>> keyboard with :
>>
>> keys['cµ'] = function()
>> buffer:fold_all(buffer.FOLDACTION_EXPAND)
>> return true
>> end
>>
>> in my init.lua file, but it doesn't work. it's working if I change 'cµ'
>> with 'cX' for example. note that the problem is the same on the "%ù" key.
>>
>> this is the results when I uncomment the print statment in the keys.lua
>> file :
>>
>> *Ctrl **
>> 65507 nil false false false false false
>> 42 nil false true false false false
>>
>> *Ctrl Shift * (Ctrl µ)*
>> 65507 nil false false false false false
>> 65505 nil false true false false false
>> 181 nil true true false false false
>>
>> I've also tried to extend the keys.KEYSYMS lookup table, but without
>> success.
>>
>>
>> ​
>> ​
>>
>
>

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
micro.star.png
Received on Wed 05 Apr 2017 - 16:30:49 EDT

This archive was generated by hypermail 2.2.0 : Thu 06 Apr 2017 - 06:34:01 EDT