Re: [textadept] Textadept 3.7 beta

From: Robert <ro....at.web.de>
Date: Thu, 3 Feb 2011 17:25:37 +0100

On Thu, Feb 3, 2011 at 4:47 PM, mitchell <c....at.caladbolg.net> wrote:
> Hi Robert,
>
> There is a simpler way:
>
> keys['up'] = { function()
>  if buffer:call_tip_active() then
>    events.emit('call_tip_click', 1)
>    return true
>  end
> end }
> keys['down'] = { function()
>  if buffer:call_tip_active() then
>    events.emit('call_tip_click', 2)
>    return true
>  end
> end }
>
> mitchell
>

Thanks!
I added an else case for the normal movement (I guess by default it's
coming from Scintilla).

keys['up'] = { function()
  if buffer:call_tip_active() then
    events.emit('call_tip_click', 1)
    return true
  else
    buffer:line_up()
 end
end }

Robert
Received on Thu 03 Feb 2011 - 11:25:37 EST

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 11:59:33 EST