Re: [textadept] Re: key commands for keys below 255

From: mitchell <c....at.caladbolg.net>
Date: Thu, 26 May 2011 11:01:50 -0400

Robert,

On Thu, May 26, 2011 at 6:36 AM, Robert <ro....at.web.de> wrote:
>
> On Wed, May 25, 2011 at 2:36 PM, mitchell <c....at.caladbolg.net> wrote:
> > 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
> >
> Mitchell
> so could this be changed to values below 128?

No, because if they are locale-dependent, KEYSYMS will not have to be
modified for each keyboard. It will "just work". Someone please
correct me if I'm wrong. I don't know much about these things.

mitchell
Received on Thu 26 May 2011 - 11:01:50 EDT

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