Re: [code] [textadept] How to setup textadept to compile ConTeXt on Windows10x64? / TA strange behaviour

From: Mitchell <m.att.foicica.com>
Date: Sat, 25 Feb 2017 21:54:34 -0500 (EST)

Hi,

On Sat, 25 Feb 2017, cryo shock wrote:

> I did as you described, copy pasted your code to init.lua. But there is no
> change. I still can't use the backslash...

That's odd, the key binding should have kicked in if the '\' key produces
the code 223. Try this event handler instead:

   events.connect(events.KEYPRESS, function(code)
     if code == 223 then
       buffer:add_text('\\')
       return true
     end
   end

Cheers,
Mitchell

>
> Am 25.02.2017 7:14 nachm. schrieb "Mitchell" <m.att.foicica.com>:
>
>> Hi,
>>
>> On Sat, 25 Feb 2017, cryo shock wrote:
>>
>> Thanks for your quick response Mitchell,
>>>
>>> I will try your solution a little later, when I have more time. Thanks for
>>> that.
>>>
>>> I did as you asked for the backslash problem, and indeed TA gives me a
>>> numeric code: 223
>>>
>>
>> Okay, since it's not the expected 92, you'll have to set up a custom
>> keybinding in your *init.lua*:
>>
>> keys['\223'] = function() buffer:add_text('\\') end
>>
>> For more documentation on keys:
>> http://foicica.com/textadept/api.html#keys
>>
>> 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.
>>
>>
>

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.
Received on Sat 25 Feb 2017 - 21:54:34 EST

This archive was generated by hypermail 2.2.0 : Sun 26 Feb 2017 - 06:27:32 EST