Re: [code] MMB click on tab bar (FR)

From: Mitchell <m.att.foicica.com>
Date: Wed, 13 Nov 2019 09:05:10 -0500 (EST)

Hi Lukas,

On Wed, 13 Nov 2019, Procházka Lukáš Ing. wrote:

> Hello Mitchel,
>
> On Thu, 07 Nov 2019 18:45:59 +0100, Mitchell <m.att.foicica.com> wrote:
>
>> Hi Lukas,
>>
>> On Fri, 13 Sep 2019, Procházka Lukáš Ing. wrote:
>>
>> I've committed changes to the `events.TAB_CLICKED` event to include the
>> mouse button number used[1], as well as any key modifiers held down. You
>> will be able to close buffers on middle-click via something like:
>>
>> events.connect(events.TAB_CLICKED, function(button)
>> if button == 2 then io.close_buffer() end
>> end)
>
> great news;
> it might be better to add rather
>
> events.connect(events.TAB_CLICKED, function(index, button)
> -- index = index of panel which was clicked on
> -- button = mouse button: 1 = LMB, 2 = MMB, 3 = RMB
> end)
>
> to keep backward compatibility with existing event handlers - but it's up to
> you anyway.

You're right. That would be better. Thanks.

Cheers,
Mitchell

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Wed 13 Nov 2019 - 09:05:10 EST

This archive was generated by hypermail 2.2.0 : Thu 14 Nov 2019 - 06:43:14 EST