Re: [code] [textadept] How to use Super as a modifier key

From: triplejam <triplejam.att.protonmail.com>
Date: Sat, 04 Nov 2017 21:52:36 -0400

Okay thanks, that worked. I also had to remove the OSX condition in the keys.lua. Just bought the book.

> -------- Original Message --------
> Subject: Re: [code] [textadept] How to use Super as a modifier key
> Local Time: November 2, 2017 9:59 PM
> UTC Time: November 3, 2017 1:59 AM
> From: m.att.foicica.com
> To: code.att.foicica.com <code.att.foicica.com>
>
> Hi,
>
> On Thu, 2 Nov 2017, triplejam wrote:
>
>> Ok, what would be the best place to set this in the source code? I've looked through it and I'm not sure.
>>
>> It's in the s_keypress function, near line 1951 in src/textadept.c. You'd need to find the GDK_*_MASK associated with the super key and replace event_mod(META) with that identifier. Then core/keys.lua's keypress function will have the meta flag set when Super is held. You should be able to then use the 'm' key modifier in your key bindings.
>>
>> 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 Sat 04 Nov 2017 - 21:52:36 EDT

This archive was generated by hypermail 2.2.0 : Sun 05 Nov 2017 - 06:43:39 EST