Re: Keysyms and rectangular selection

From: mitchell <mforal.n....at.gmail.com>
Date: Sun, 6 Jun 2010 19:36:04 -0700 (PDT)

Robert,

> I'd would like to suggest making the KEYSYMS table global, like
> recently done with the enclosures table.
> This would simplify writing (and reading) extensions, like in the
> multiedit module.
> This could be used in command_entry.lua as well:
>
> -    if code == 0xff1b then -- escape
> +    local KEYSYMS = textadept.keys.KEYSYMS
> +    if KEYSYMS[code] == 'esc' then
>
> -    elseif code == 0xff09 then -- tab
> +    elseif KEYSYMS[code] == '\t' then
>
> A while ago I wrote a function for rectangular selection
> (http://gist.github.com/421382, press alt-r then the arrow keys to
> extend the selection, usable as well for creating a multiple cursor)
> where I could use this as well.

Applied to hg. Thanks.

Mitchell

>
> Robert
>
>  keysyms.diff
Received on Sun 06 Jun 2010 - 22:36:04 EDT

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 11:46:44 EST