Re: key commands for keys below 255

From: mitchell <c....at.caladbolg.net>
Date: Wed, 25 May 2011 05:36:33 -0700 (PDT)

Hi,

On May 24, 7:13ápm, anton <averbit....at.yandex.ru> wrote:
> Hi all,
>
> I've just started to use TA and I really enjoy exploring it.
>
> I want to ask for help in a small technical problem
>
> in order to assign a command to a key with value higher than 255
> one proceeds as follows
> 1. Add this value to áKEYSYMS table in
> á ácore/keys.lua
> (one can look it up herehttp://git.gnome.org/browse/gtk+/plain/gdk/gdkkeysyms.h
> and use for instance wolframalpha to convert to decimal )
> 2 Add a command to this key in keys table in
> á modules/textadept/keys.lua.
>
> Somehow this seems not to work with keys values below 255 (like «,š or
> ▀, for instance).
> Direct ways like keys['«'] ádon't help either.

Keys below 256 are converted to text via Lua's string.char() function.
Values larger than 127 are probably locale-dependent.

mitchell

>
> Thank you very much for your help.
>
Received on Wed 25 May 2011 - 08:36:33 EDT

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 12:09:08 EST