Re: [code] Parenthesis and selection

From: Pedro Andres Aranda Gutierrez <paaguti.att.gmail.com>
Date: Fri, 30 Sep 2016 07:50:44 +0200

Hi Mitchell,

Checked and ... It works as expected! Thanks a lot. IMvvHO you can push
this change.

Thanks a lot,
/PA

El 29 sept. 2016 22:00, "Mitchell" <m.att.foicica.com> escribió:

> Hi Pedro,
>
> On Thu, 29 Sep 2016, Pedro Andres Aranda Gutierrez wrote:
>
> More to it: maybe t is the convoluted way of handling some non-English
>> keyboards, but
>>
>> keys[OSX and 'a{' or '{'] = function() ... end
>>
>> does the trick on my spanish Mac OSX keyboard.
>>
>> Time to make sure that the character (sequence) you intent to produce is
>> the character you actually see in the code? I mean, I don't know how it is
>> in other foreign keyboards, but if you type '{' and need a modifier
>> because
>> your keyboard says so, the code should only see the '{' without the
>> modifiers you needed to press to get it.
>>
>> If not, sharing configs among users or simple code snippets will be a
>> pain.
>>
>
> Would you please make the following change to your "core/keys.lua"'s
> `keypress` function around line 209?
>
> if not key then return end
> shift = shift and (code >= 256 or code == 9)
> + if OSX and alt and code < 256 then alt = false end
> local key_seq = (control and CTRL or '')..(alt and ALT or '')..
>
> This should ignore the alt/option modifier for at least composed ASCII
> keys.
>
> Let me know if it works and I'll commit it.
>
> Cheers,
> Mitchell
> --
> 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.
>
>

-- 
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.
Received on Fri 30 Sep 2016 - 01:50:44 EDT

This archive was generated by hypermail 2.2.0 : Fri 30 Sep 2016 - 06:49:53 EDT