Re: keys.lua (was feature request: gui extensions)

From: mitchell <>
Date: Tue, 21 Dec 2010 20:27:27 -0800 (PST)

Hi Robert,

> attached is a "proof of concept" moving of the keypress handling to
> the core module. I understand the recommended way but moving it would
> simplify your life and those of others who have their very customized
> key bindings, wouldn't it?
> Additionaly, having KEYSYMS as a global table would be useful, too.
> E.g. in find.lua there is
> if code == 0xff1b then -- escape
> which could be
> if KEYSYMS[code] == 'esc' then
> Now this isn't possible because keys.lua is loaded last, and in other
> modules having _m.textadept.keys.KEYSYSMS[code] is not really much
> better than writing a comment which explains the used key.

I will try to look at this over the holiday when I have some time.
Thanks for the submission!


> Robert
>  keypress.diff
Received on Tue 21 Dec 2010 - 23:27:27 EST

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 11:57:48 EST